• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 25 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0025 秒)

1. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 100%]

...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

2. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 97%]

...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

3. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 97%]

...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

4. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 81%]

...显示多个动画。 代码示例: ```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

5. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 79%]

...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

6. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 78%]

...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

7. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 70%]

...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

8. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 70%]

...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

9. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 69%]

...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

10. 目标纹理的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 64%]

...纹理的相机 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