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

大约有 466 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)

461. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 30%]

...ey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外,还有第三个...

来源: Laya2.0_文档 发布时间: 20210714

462. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 28%]

...数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, this.onLoop) } _proto.onLoop = function(){ //移动 this.x -= 5; this.moveX = Math.abs(this.x); //当背景1向左移动出游戏的显示区域 1600,则将背景1的x轴坐标,向右移动 1600*2. if (th...

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

463. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this.txt.setVar("n", page); //使用setVar方法,让text文本中变量n的值动态改变 }); } } 效果如动图1-6所示: (动图1...

来源: Laya3.0_文档 发布时间: 20251010

464. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 22%]

...this.animator.crossFade("Run", 0.1); //等待动画播放完成 Laya.timer.frameLoop(1,this,()=>{ //如果当前播放state已经播放完了一次 if(this.animator.getControllerLayer(0).getCurrentPlayState().normalizedTime >= 1){ //回到站立状态 this.animator.crossFade("Stand", 0.1); Lay...

来源: Laya3.0_文档 发布时间: 20251010

465. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 21%]

...ation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D } ) //节点类型 public p3d: ...

来源: Laya3.0_文档 发布时间: 20251010

466. 引擎 TiledMap 居然不支持图块翻转 [ 17%]

...    if (this._spriteNum == 0) {                 Laya.ILaya.timer.frameLoop(3, this, this.animate);                 this._preFrameTime = Laya.ILaya.Browser.now();                 this._frameIndex = 0;                 this._time = 0;                 this._inte...

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