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

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

331. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 65%]

...create(this,function(scene) { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.Dir...

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

332. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 64%]

....create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.Dir...

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

333. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...aya.Vector3(outs[i].point.x, outs[i].point.y, outs[i].point.z); this.scene.addChild(box); } } } (动图7-1) 7.2 可视遮罩层Layer 前面5.4节中也提到过Culling Mask的用处,在我们制作游戏时,我们也可用通过代码来达到‘ 隐身 ’的效果。 还是用3D-RPG项目...

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

334. Sprite生成的mask对Sprite作用时显示不正确 [ 64%]

...niMap.width,miniMap.height, '#ff0000'); miniMap.mask = mapMask; Laya.stage.addChild(miniMap) 2018-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 不要设置autosize 直接用遮罩...

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

335. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...ake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage.addChild(video); video.pos(200,200); //设置位置 video.source = "resources/layaAir.mp4"; //设置视频源文件 video.play(); //开始播放 } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更...

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

336. 对话框点击空白处无法关闭 [ 63%]

...SelectColorDialog.super(this); this.name = 'SelectColorDialog'; Laya.stage.addChild(this); this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());然后我使用下面的代码来弹出对话框 var dialog = new SelectColorDialog(); dialog.show();...

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

337. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 63%]

...unction(scene:Scene3D):void { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = ...

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

338. laya.d3.core.scene.Scene3D_API3.0 [ 63%]

...h x y zOrder _updateMark Methods _initialize _processActive _setCullCamera addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentP...

来源: Laya3.0_api 发布时间: 20231115

339. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 63%]

...Laya.Ease.linearInOut,Handler.create(this,this.aeroboatTween1)); })); this.addChild(this.mountain); this.addChild(this.aeroboat); this.addChild(this.tower); this.addChild(this.ball); this.addChild(this.statue); this.addChild(this.angel); } // 更新岛 _proto.update = function(target){ var obj = {};...

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

340. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 62%]

...=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { console.log("执行了点击"); } })(); 附件 : ...

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