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

大约有 698 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0040 秒)

41. 加载到舞台的3D模型不显示贴图 [ 87%]

...原因。 var staticMesh = scene.addChild(new Laya.Sprite3D()); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { var meshSprite = sprite.getChildAt(0);//此对象不一定是MeshSprite3D类型,会导致出错 var mesh = meshSprite.meshFilter.sharedMesh; mesh.once(Laya.Event.L...

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

42. laya.d3.webxr.core.ButtonGamepad_API3.0 [ 87%]

...NT_TOUCH_STAY Methods destroy event hasListener off offAll offAllCaller on once Constructors constructor new ButtonGamepad(handness: string, index: number): ButtonGamepad Defined in laya/d3/WebXR/core/WebXRGamepad.ts:104 类用于创建Button对象 Parameters handness: string 设备名称 index: num...

来源: Laya3.0_api 发布时间: 20231115

43. laya.events.EventDispatcher_API3.0 [ 86%]

...Socket TimeLine Index Methods event hasListener off offAll offAllCaller on once Methods event event(type: string, data?: any): boolean Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是...

来源: Laya3.0_api 发布时间: 20231115

44. laya.components.AnimatorState2D_API3.0 [ 86%]

... destroy event getScript getScripts hasListener off offAll offAllCaller on once Properties clipEnd clipEnd: number = 1 Defined in laya/components/AnimatorState2D.ts:55 动作播放结束时间。 clipStart clipStart: number = 0 Defined in laya/components/AnimatorState2D.ts:50 动作播放起始时...

来源: Laya3.0_api 发布时间: 20231115

45. 点击过快问题 [ 85%]

...eying 赞同来自: zjw917329684 参考下下面的写法吧: Laya.stage.once(Event.CLICK,this,onClick); } private function onClick():void { trace("aaa"); Laya.stage.off(Event.CLICK,this,onClick); Laya.timer.once(500,this,onLoop); } private function onLoop():void { Laya.stage.once(Event.CLICK,this...

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

46. laya.d3.webxr.core.WebXRInput_API3.0 [ 85%]

...y event hasListener off offAll offAllCaller offAxisEvent offButtonEvent on once Constructors constructor new WebXRInput(handness: string): WebXRInput Defined in laya/d3/WebXR/core/WebXRInput.ts:60 Parameters handness: string Returns WebXRInput Properties _lastXRPose _lastXRPose: any Defined in laya/...

来源: Laya3.0_api 发布时间: 20231115

47. 图片mask失效问题. [ 85%]

...mask=maskimg;    photoimg.loadImage(imgn,0,0,500,500);    Laya.timer.once(1000, this, function():void{     maskimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500);         }); 延时加载  的效果. 模拟加载的东西很多的时候 2016-09-23 0 8 分享 微...

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

48. Timer.clear 方法有问题 [ 84%]

...! 2018-07-19 0 0 分享 微博 QZONE 微信 Yuk 赞同来自: Laya.Timer.once(100, this, this.fun, null, false); Laya.Timer.once(400, this, this.fun, null, false); Laya.Timer.once(900, this, this.fun, null, false); 在另一处: Laya.Timer.clear(this, this.fun);  这样的写法应该很常见...

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

49. laya.utils.TimeLine_API3.0 [ 84%]

...stroy event from gotoLabel gotoTime hasListener off offAll offAllCaller on once pause play removeLabel reset resume to from to Properties scale scale: number = 1 Defined in laya/utils/TimeLine.ts:45 缩放动画播放的速度。 Accessors total get total(): number Defined in laya/utils/TimeLine.ts:...

来源: Laya3.0_api 发布时间: 20231115

50. 如何获得特效的宽高 [ 84%]

... 提交 2 个回复 z298959 赞同来自: 能给具体点吗新手   ani.once(Laya.Event.LOADED,null,function(ani1){                 console.log(ani1.getGraphicBounds());             });   这样写的话监听不到           2017-06-28 0 1 分享 微博 QZONE 微信 cuixueyin...

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