首页 > 编程知识 正文

少女前线龙骨动画,龙骨动画

时间:2023-05-05 20:38:54 阅读:181773 作者:3337

官方网站

3358 dragon bones.com/cn/index.html

unity龙骨插件

33559 github.com/dragon bones/dragonbonetounity

龙骨

privatereadonlystringlogopath=' db _ anim/'; publicgameobjectplay (stringbonesdata,string atlasData,string animation, int times=1) textassetdragontext=resources as textassetatlastext=resources.load () this.logopathatlasdata ),typeof as texture2d texture=resources.load ((this.logopathatlasdata ),typeof ) texture 2d ) as Texture2D; unity factory.factory.loaddragonbonesdata (dragon text ); unity factory.factory.loadtextureatlasdata (atlas text,texture ); this.armature component=unity factory.factory.buildarmaturecomponent (armature ); this.armature component.animation.play (animation,times ); invokerepeating(releasedragon ),3f,1 ); return this.armature component.game object; () ) ) ) )。

public void ReleaseDragon () if ) this.Armaturecomponent==null ) { return; (if (! this.armature component.animation.is playing (destroy immediate (this.armature component.game object ) ); UnityFactory.factory.Clear (; this.armatureComponent=null; }参数解读:

string bonesData龙骨的json数据

字符串数据贴图集数据

字符串动画数据名称。 如果未设置,则播放默认动画,从暂停状态切换到播放状态,或播放以前播放的动画。)

int times循环再生次数。 使用[-1:视频数据默认值,0:无限循环播放,[1~N]:循环播放n次] (默认值: -1 )

unity factory.factory.buildarmaturecomponent (' armature ' ) ) ) )。

“参数”编辑器中的骨架名称

FairyGUI :

ggraphgr=BTN.getchild('mask ' ).asGraph; geobjectgo=playlocalplatform (' db _ ske ',' DB_tex ',' start ',0 ); gr.setnativeobject (newgowrapper ) go ); gr.set scale (100,100 ); gr.Setxy(194f,311f ); UGUI等待测量。 请参阅。 请参阅。

附件:

在Unity中使用龙骨动画

终于回到正题。 首先,在场景中创建阻力对象。 导入龙骨插件后,可以在Hierarchy视图中右键单击名为DragonkBones的选项。 请单击“参数对象”

制作成功了。 选择此Armature对象以显示分析器视图

此对象附带了UnityArmatureComponent组件。 此组件下有一个名为“龙骨数据”(DragonBonesData )的属性。 刚导出到项目中的龙骨动画明显是三个文件。 我该怎么办?

在Unity的文件管理器中找到导出的关键帧动画的三个文件,选择这三个文件,单击鼠标右键,然后选择“create-dragon bones-createunitydate”

关键点动画相关链接

33558 www.manew.com/thread-96726-1-1.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。