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

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

851. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 67%]

...ull, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonClickDemo.rar 2017-05-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 8 个回复 Monica - 知识达人...

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

852. graphics如何实现橡皮擦效果 [ 67%]

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

853. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 67%]

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

854. Object.defineProperty is not a function [ 67%]

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

855. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 67%]

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

856. 预设/场景的导出(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 67%]

...nComplete(scene:Laya.Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): ![](img/2.png)(图2)

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

857. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...(); 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

858. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 67%]

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

859. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 67%]

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

860. 导出的3D资源加载报错 [ 67%]

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