大约有 25 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0027 秒)
...0; //Laya.Tween.from(letterText,{y:100},3000,Laya.Ease.elasticInOut,null,i*1000);//注释本行改为将Laya.Tween.from改变为Laya.Tween.to Laya.Tween.to(letterText,{y:100},3000,Laya.Ease.elasticInOut,null,i*1000); ``` 运行效果如动图3所示 ![动图3.gif](img/3.gif)(动图3) 结合代...
来源: Laya2.0_文档 发布时间: 20210715
...300; //Laya.Tween.from(letterText,{y:100},3000,Laya.Ease.elasticOut,null,i*1000);//注释本行改为将Laya.Tween.from改变为Laya.Tween.to Laya.Tween.to(letterText, { y : 100 }, 3000, Laya.Ease.elasticOut, null, i * 1000); ``` 运行效果如动图3所示 ![动图3.gif](img/3.gif)(动图3) ...
来源: Laya2.0_文档 发布时间: 20210715
...00; //Tween.from(letterText, { y : 100 }, 3000, Ease.elasticOut, null, i * 1000);//注释本行改为将Tween.from改变为Tween.to Tween.to(letterText, { y : 100 }, 3000, Ease.elasticOut, null, i * 1000); ``` 运行效果如动图3所示 ![动图3.gif](img/3.gif)(动图3) 结合代码,我们...
来源: Laya2.0_文档 发布时间: 20210715
...显示多个动画。 代码示例: ```javascript var templet; Laya.init(1000,900,Laya.WebGL); //创建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/gob...
来源: Laya2.0_文档 发布时间: 20210715
...le { templet: Laya.Templet; constructor() { Laya.WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblin...
来源: Laya2.0_文档 发布时间: 20210715
...mplet; public function SkeletonTempletSample() { WebGL.enable(); Laya.init(1000, 900); //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } privat...
来源: Laya2.0_文档 发布时间: 20210715
...nt); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce...
来源: Laya2.0_文档 发布时间: 20210715
...nt); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce...
来源: Laya2.0_文档 发布时间: 20210715
...nt); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } override public function onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fix...
来源: Laya2.0_文档 发布时间: 20210714
...纹理的相机 var renderTargetCamera = scene.addChild(new Camera(0, 0.3, 1000)); renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderT...
来源: Laya2.0_文档 发布时间: 20210715