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

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

1571. 材质-BlinnPhong-漫反射贴图 [ 80%]

...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (sce...

来源: Laya_示例 发布时间: 20260303

1572. 音频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 80%]

...组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sound.source = "resources/sound.wav"; //音频路径 this.sound.loop = 0; //循环次数设置,要放在autoPlay参数设置前 this.sound.autoPlay = true; //自动播放 this.sound.isMusic = false; //是否为背景音...

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

1573. Animation添加帧标签无效是怎么回事。 [ 80%]

... ayiui4566 赞同来自: 解决了,得在加载完成后设置Label。 this.takeOutMc.loadAnimation("ani/TX036.ani",Laya.Handler.create(this,()=>{                 //加载完设置label                 this.takeOutMc.addLabel("shou",26);             }...

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

1574. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 80%]

...res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is no...

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

1575. tiledMap显示层级问题 [ 79%]

...界点的时候读取需要加载的区块名称,通过Laya.loader.load(this.m_mapName, Laya.Handler.create(this, this.onLoadCompleteHandler), null, Laya.Loader.ATLAS);加载资源,成功后调用this.m_tileMap.createMap(OOXX);来显示。不知道这样调用是否正确? 因为看到之前...

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

1576. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,会出现返回0的情况 [ 79%]

...***233 • 2017-08-28 11:51 private get IndexOfShieldName(): Boolean { if (this.shieldArray.indexOf(this.roleName) != -1) { var index:number=this.shieldArray.indexOf(this.roleName); console.log("找到了,位置在"+index); return true; } console.log("没找到"); return false } ...

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

1577. 物理引擎bug [ 79%]

...接 提交 2 个回复 叔年心~厌世 赞同来自: for(var i=0;i<this.boneCtn.numChildren;i++){ let b=this.boneCtn.getChildAt(i); b.destroy(); b.removeSelf(); }这样写也不行 2019-09-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个问题没有上传demo 无法调试和...

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

1578. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 79%]

...f"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild...

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

1579. 材质-BlinnPhong材质加载 [ 79%]

...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scen...

来源: Laya_示例 发布时间: 20260303

1580. 3D中的Animator如何从指定的某一帧开始播放动画 [ 79%]

...Clip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); animator.on(Event.COMPLETE, this, this.removeClip); animator.play("runShoot"); 2018-07-26 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个要在unity 里面进行切片,从那一帧开...

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