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

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

3481. Animation属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 39%]

...置是否自动播放,默认为false,不自动播放。如果设置为true,则动画被创建并添加到舞台后自动播放。该属性设置不可以在IDE中即时预览,需要在发布运行时查看属性设置效果。 #### 2.6 按动效名称自动播放(autoAnimation) 在LayaAi...

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

3482. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 39%]

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

3483. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 39%]

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

3484. laya.components.CommonScript_API3.0 [ 39%]

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

3485. drawTexture 画出来的数据会有以前的数据 [ 39%]

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

3486. Spine渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...s.spine.skinName = "default"; // 设置皮肤名称 this.spine.play("att", true); // 播放名称为"att"的攻击动画,true表示循环播放 this.btn.on(Laya.Event.CLICK, this, this.changeAttachment); //监听点击事件,触发切换武器的方法 //以下基础设置可以在IDE里设置...

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

3487. 借助AMD来解决HTML5游戏开发中的痛点 [ 38%]

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

3488. 构建apk后,java报错 [ 38%]

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

3489. laya.d3.physics.CharacterController_API3.0 [ 38%]

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

3490. 3D场景环境设置 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...,雾化的颜色 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