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

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

1641. 请问如何获取组件的子节点的数量? [ 78%]

...相关的链接 提交 2 个回复 w1114367261 赞同来自: JokerKKK i = this.var.numChildren;//得到该父物体下的所有子物体个数 this.var.getchildAt("要获取的物体的下标int类型")//根据子物体下标获取单个物体 2018-04-18 1 1 分享 微博 QZONE 微信 173*****441 ...

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

1642. 模型资源异步加载和预加载 [ 78%]

...建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh"); this.scene.addChild(sprite3D); ...

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

1643. 【经验】window.focus is not a function [ 78%]

...支持async、await编译经验分享 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 打地鼠发布成微信小游戏后提示gameThirdSc...

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

1644. load 粒子的时候永远出错 [ 78%]

load 粒子的时候永远出错 永远报这个错误:Warning!,this class[MiniAdpter] already exist: Object {} [warn]Retry to load: res/rotate.part [error]Failed to load: res/rotate.part   我的代码:   Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya...

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

1645. 2.0使用addComponent的组件,怎么删除?没有removeComponent [ 78%]

...: 2018-11-30 18:25 浏览: 1281 关注: 1 人 苏栢 • 2019-02-16 16:24 (this.player.getComponent(playerScript) as playerScript).destroy(); 或者 this.player._destroyComponent(this.player.getComponent(playerScript));

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

1646. tween对Text的缩放,为何会抖动呢? [ 78%]

...接 提交 4 个回复 135*****133 赞同来自: 找到解决办法了: this.txt.cacheAs = "normal";//或者设置bitmap皆可解决抖动问题 2020-04-10 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个抖动是bug,敬请期待后续版本修复 2020-04-10 0 0 分享 微博 QZO...

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

1647. 引擎中的修改意见 [ 78%]

...的使用形同虚设: public function set text(value:String):void { if (this._text !== value) { var a:Array = (value + "").split("|"); var p:Array; if(a.length > 1){ p = a.slice(1); lang(a[0],p); }else if(a.length == 1){ lang(a[0]); }else { lang(""); } isChanged = true; event(Event.CHANGE); } ...

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

1648. Laya.Physics上不存在rayCastAll [ 78%]

...动: 2019-09-26 14:48 浏览: 2750 关注: 3 人 NilZ • 2019-09-27 14:45 this.scene.physicsSimulation.rayCastAll(this._ray, this.outs);是在scene的physicsSimulation对象。可以看一下源码。 boom • 2019-06-26 16:43 是F9里面的physics3d 吗?那个我已经打开了

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

1649. MOUSE事件和移动端的Touch事件如何对应 [ 78%]

...8:04 浏览: 4035 关注: 2 人 riven • 2017-06-01 18:38 能直接监听 this.on("touchmove", this, this.onMouseMove)?

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

1650. xhr的on和once什么区别,官网例子 [ 78%]

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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