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

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

741. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 51%]

...:   Laya.loader.load("RenderTexture.rendertexture", null, Laya.Handler.create(this, null, null, false)).then(() => { this.spRole.texture = Laya.loader.getRes("RenderTexture.rendertexture"); //设置纹理的宽高为舞台大小,这样才不会拉伸变形 this.spRole.texture.sourceWidth = L...

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

742. Laya 绑定显示内容到骨骼动画 [ 51%]

...eBinds():void{ let source:BindSource; let position:Laya.Point=Laya.Point.create(); for(let index:number=0;index<this.__bindList.length;index++){ source=this.__bindList[index]; SkeletonUtils.getBoneLocalPoint(this,source.boneName,position); source.x=source.offestX+position.x; source.y=source.of...

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

743. Uncaught unknown animationClip version. [ 51%]

... Laya.Scene3D.load("LayaScene_scene1/Conventional/scene1.ls", Laya.Handler.create(this, function (s: Laya.Scene3D): void { var scene = s; Laya.stage.addChild(scene);         }));   加载代码 2019-03-13 0 0 分享 微博 QZONE 微信 Zong 赞同来自: 断点调试显示clip.version = "LA...

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

744. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 51%]

...源版本控制 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setIm...

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

745. 新人求教!!! [ 51%]

...舞台      Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{    //创建一个实例    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(this.img);    //显示初始化绘制的图片    th...

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

746. Cannot read property 'props' of undefined [ 51%]

...用就挂……   Laya.Scene3D.load("LayaScene_Map/Map.ls",Laya.Handler.create(null,function(scene){             //加载完成获取到了Scene3d             Laya.stage.addChild(scene);         })); 附件 : --> LayaScene_Map.zip 2020-07-07 添加评论 免费帖 --...

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

747. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 51%]

... //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): ![](img/2.png)(图2)

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

748. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 51%]

...d("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform.localPos...

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

749. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 51%]

...w Sprite(); sp.loadImage("res/apes/monkey2.png", 0, 0, 0, 0, Handler.create(this, function() {     console.log(sp.width, sp.height); })); Laya.stage.addChild(sp); ``` ​ loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 3. **直接调用size设置:** ``...

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

750. 如何获取animation的node节点? [ 51%]

...Name+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniProps.mc[options.srcName].frames[i].res].y, aniProps.res[aniProps.mc[options.srcName].frames[i].res].w, aniProps.res[aniProps.mc[opti...

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