大约有 3,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0094 秒)
Laya_社区(2682) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) Laya3.0_文档(104) laya_api(98) Laya_示例(83) Laya2.0_示例(45)
...置是否自动播放,默认为false,不自动播放。如果设置为true,则动画被创建并添加到舞台后自动播放。该属性设置不可以在IDE中即时预览,需要在发布运行时查看属性设置效果。 #### 2.6 按动效名称自动播放(autoAnimation) 在LayaAi...
来源: Laya2.0_文档 发布时间: 20210715
...像素 txt.strokeColor = "#FFFFFF"; //设置为粗体 txt.bold = true; //设置文本的显示起点位置X,Y txt.pos(60, 100); //设置舞台背景色 Laya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } new GameMain(); 海货 • 2018-07-15 16:17...
来源: Laya_社区 发布时间: 20180715
...a.Vector3(0, 2, 20)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = new Laya.Vector4(0.2, 0.2, 0.2, 1.0); var directionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //设置平行光的方向 var mat = directionLight.transform.worl...
来源: Laya_社区 发布时间: 20220815
... laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/compon...
来源: Laya3.0_api 发布时间: 20231102
...0); if(!texture) texture = new Texture(htmlCanvas); else { texture.destroy(true); texture = new Texture(htmlCanvas); } IconSpr.graphics.drawTexture(texture); } private function onRun():void { img.x += xNum; img.y += yNum; if(img.x < 0 || img.x > (1280 - 156)) { xNum = -xNum; } if(img.y < 0 ...
来源: Laya_社区 发布时间: 20180113
...s.spine.skinName = "default"; // 设置皮肤名称 this.spine.play("att", true); // 播放名称为"att"的攻击动画,true表示循环播放 this.btn.on(Laya.Event.CLICK, this, this.changeAttachment); //监听点击事件,触发切换武器的方法 //以下基础设置可以在IDE里设置...
来源: Laya3.0_文档 发布时间: 20260131
...```html <script data-main="js/GameMain" src="./require.js" defer async="true"></script> ``` ## 适配AMD 增加LayaAir引擎适配模块`adapter.ts`,每一个LayaAir的类都要增加一个适配。比如`Laya.EventDispatcher`: ```ts export const EventDispatcher = Laya.EventDispatcher;...
来源: Laya_社区 发布时间: 20170817
...26 18:35:02.514 2325-2325/? V/SyncNotificationUtils: sendSyncingBroadcast: true 2018-11-26 18:35:05.384 2325-2325/? I/chatty: uid=10048(com.xiaomi.xmsf) identical 5 lines 2018-11-26 18:35:06.154 2325-2325/? V/SyncNotificationUtils: sendSyncingBroadcast: true 2018-11-26 18:35:06.521 1071-1071/? D/cns...
来源: Laya_社区 发布时间: 20181126
... laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Inherited from PhysicsTrigg...
来源: Laya3.0_api 发布时间: 20231115
...,雾化的颜色 5.2 代码使用 //雾化代码 this.scene.enableFog = true; //设置雾化的颜色 this.scene.fogColor = new Laya.Color(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 this.scene.fogStart = 10; //设置雾化最浓处的距离。 this.scene.fogRange = 40; 六...
来源: Laya3.0_文档 发布时间: 20251010