大约有 61 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0065 秒)
...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.SoundNode }) public sound: Laya.SoundNode; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): vo...
来源: Laya3.0_文档 发布时间: 20240910
使用linkSprite3DToAvatarNode绑定sprite到骨骼上,角色运动时绑定的mesh会经常抖动 如题,使用Animator.linkSprite3DToAvatarNode(boneName, sprite)来把武器绑定到手的骨骼上,当角色在原地不动时,播放循环动画没什么问题,但当角色动起来以后...
来源: Laya_社区 发布时间: 20180504
...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.mesh...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.Vector3(300, 500, 0); var translate = new Laya.Vector3(0, 0, 0); Laya.Sprite3D.load("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChil...
来源: Laya_社区 发布时间: 20191206
...ontrollerLayer getCurrentAnimatorPlayState getDefaultState hasHideFlag linkSprite3DToAvatarNode onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate play removeState unLinkSprite3DToAvatarNode Constructors constructor new Animator(): Animator Ov...
来源: Laya3.0_api 发布时间: 20231102
...: Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); ...
来源: Laya_社区 发布时间: 20180116
...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1...
来源: Laya2.0_文档 发布时间: 20210715
... 发起人 momo199059 相关问题 Layaair IDE的帧属性面板不见了 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 缓动Tween能用在3D物体或者特效上面吗? 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 ...
来源: Laya_社区 发布时间: 20180116
...自: /**获取动画 */ public getAni(): void { this.ani = this.owner.sprite3d.getComponent(Laya.Animator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; c...
来源: Laya_社区 发布时间: 20190802
... liblayaair.so 总是崩溃,有没有官方人员帮忙解决一下啊 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 缓动Tween能用在3D物体或者特效上面吗? 使用钢体设置防穿后仍有几率会穿透 如何设置Sprite的宽高和点击区域? ...
来源: Laya_社区 发布时间: 20170103