大约有 1,493 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0055 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...ull, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonClickDemo.rar 2017-05-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 8 个回复 Monica - 知识达人...
来源: Laya_社区 发布时间: 20170513
...e(); // 设置容器为画布缓存 box.cacheAs = "bitmap"; this.layCanvas.addChild(box); // 绘制红色方块 var red = new Sprite(); red.graphics.drawRect(0, 0, 150, 150, "#ff0000"); box.addChild(red); // 绘制一个圆形区域,利用叠加模式,抠除上面红色区域 var circle = new Sp...
来源: Laya_社区 发布时间: 20170707
... this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(laya_width/2,laya_height/2); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play); this.play(); } ...
来源: Laya_社区 发布时间: 20211013
...is.preinitialize is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 微信开发者工具iOS模拟器报错:CharRender_Canvas.ctx.fillAndStrokeText is not a function 问题状态 最新活动: 2017-03-22 11:21 浏览: 1127 关注: 3 人 cuixueying • 2017-03-21 ...
来源: Laya_社区 发布时间: 20170321
...ge.height = videoTexture.video.videoHeight; image.pos(100,100); Laya.stage.addChild(image); //目前LayaAir2.0引擎暂时没有提供刷新纹理机制,需要手动刷新。或者你可以试用LayaAir3.0引擎,那边实现videoTexture不用自己手动刷新 Laya.timer.frameLoop(1, this, this....
来源: Laya_社区 发布时间: 20240305
...nComplete(scene:Laya.Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210714
...(); let pointCom = pointLight.addComponent(Laya.PointLightCom); this.scene.addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLigh...
来源: Laya3.0_文档 发布时间: 20251010
...esArray.length; function onLoaded() { console.log("进度条"); Laya.stage.addChild(fairygui.GRoot.inst.displayObject); fairygui.UIPackage.addPackage("res/Public"); var ProgressBarPage=fairygui.UIPackage.createObject("Public","ProgressPage").asCom; fairygui.GRoot.inst.addChild(ProgressBarPage); va...
来源: Laya_社区 发布时间: 20171207
...x.selectHandler = new Handler(this, this.onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } private onSelect(cb: ComboBox): void { console.log("选中了: " + cb.selectedLabel); } } } new laya.UI_ComboBox(); ```
来源: Laya2.0_文档 发布时间: 20210715
...odelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera:Camera = new Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //旋转摄像机角度 camera.transform.rotate(new Vector3(...
来源: Laya_社区 发布时间: 20190416