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

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

91. 鼠标交互-Hold [ 70%]

...发语言、LayaAirIDE让项目开发更高效。const HOLD_TRIGGER_TIME = 1000, apePath = "res/apes/monkey2.png"; let isApeHold = false; class Interaction_Hold { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支...

来源: Laya2.0_示例 发布时间: 20241002

92. 灯光-点光 [ 70%]

...ild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //点光源 var pointLight = scene.addChild(new Laya...

来源: Laya_示例 发布时间: 20241002

93. 3d中 缓动往一个点转向并移动的问题 [ 70%]

...Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rotation = out1; transform.translate(v3)   附件中是unity的效果  2018-07-26 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

来源: Laya_社区 发布时间: 20180726

94. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 69%]

...ne3D(); Laya.stage.addChild(scene3d); var camera = new Laya.Camera(0, 0.1, 1000); scene3d.addChild(camera); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(1000, 0, 0)); camera.orthographic = true; //正交投影垂直矩阵尺寸 camer...

来源: Laya_社区 发布时间: 20191206

95. UI-Clip [ 69%]

...r = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; counter.x = (Laya.stage.width - counter.width) / 2 - 35; counter.y = (Laya.stage.height - counter.height) / 2 - 40; Laya.stage.addChild(counter); } function showTotalSeconds() { var clip = new Clip(clipSkin, 10, 1); cli...

来源: Laya_示例 发布时间: 20241002

96. 灯光-聚光 [ 68%]

...ld(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya...

来源: Laya_示例 发布时间: 20241002

97. UI-Clip [ 68%]

...Child(this.counter); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya.stage.width - this.counter.width) / 2 - 35; this.counter.y = (Laya.stage.height - this.counter.height) / 2 - 40; } showTotalSeconds() { const Clip = Laya.Clip; let clip = new Clip(clipSkin, 10, 1)...

来源: Laya2.0_示例 发布时间: 20241002

98. 动画-新版骨骼动画 [ 68%]

...ild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = ne...

来源: Laya_示例 发布时间: 20241002

99. Laya.util.Ease这个类是用来配合Tween的,可是怎么使用?没有任何资料啊。 [ 67%]

...譬如如下 var ease:*=Ease.backIn(100,100,100,100); Tween.to(sp,{x:400},1000,ease,Handler.create(this,onTween)); 2017-01-05 0 0 分享 微博 QZONE 微信 shaotianhk 赞同来自: var ease:*=Ease.backIn(100,100,100,100); 这句是什么鬼,放在js里直接报错 2018-04-02 0 0 分享 微博 QZO...

来源: Laya_社区 发布时间: 20170105

100. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 67%]

...5 18:47 @暮黎: Laya.Tween.to(mask, { scaleX: 0 }, that.data.effectTime * 1000,null); Laya.Tween.to( [rect, mask], { width: 0 }, that.data.effectTime * 1000, null, Laya.Handler.create(this, function() { isSceneAnimMask.destroy(); }) ); 我是这样写的,就同步了 Laya_Aaron • 2018-05-24 17:30...

来源: Laya_社区 发布时间: 20180524