大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0082 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...r = 1; skeleton.load("dragonBones/chicken/chicken.sk", Laya.Handler.create(this, (e) => { console.log(e); let num = skeleton.getAnimNum() let name = skeleton.getAniNameByIndex(num - 1); skeleton.play(name) })); this.owner.addChild(skeleton); 2019-04-16 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20190416
...ole.log(Laya.stage.name); console.log(Laya.stage.numChildren); console.log(this.numChildren); console.log(this.parent); console.log(this.name); } }这个同样是null export default class game_mgr extends Laya.Script { constructor() { super(); console.log(this.owner); } } 附件 : --> 2019-09-04 添...
来源: Laya_社区 发布时间: 20190904
... __proto.uploaderHandler=function (files) { var self=this; var file=files[0]; var reader=new FileReader(); reader.onload=function () { this.headIcon.loadImage(this.result); 或者 this.headIcon.skin=thi...
来源: Laya_社区 发布时间: 20170808
...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 duration: number 花费的时间,单位毫秒。 Default value ease: Function | null = null 缓动类型,默认为匀速运动。 Default value complete: Handler | ...
来源: Laya3.0_api 发布时间: 20231115
... 代码如下 var Tww = laya.utils.Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180524
...接 提交 1 个回复 LayaAir3 赞同来自: 可否试试用这个方法 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults);, 在门的前面和后面分别放两个cube,再测试一下 2023-03-17 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20230316
... null = null; onStart() { console.log("Game start"); // 初始化 protobuf this.initializeProtobuf(); // 初始化 WebSocket 连接 this.initializeWebSocket(); } // 初始化 protobuf 并加载消息定义 private initializeProtobuf() { // ChatMessage 是 .proto 文件中定义的消息类型,包...
来源: Laya3.0_文档 发布时间: 20250103
...ivate */ __proto._computeFullKeyframeIndices=function(){ var anifullFrames=this._fullFrames=[]; var templet=this._templet; var cacheFrameInterval=this._cacheFrameRateInterval *this._cachePlayRate; //刚体动画时 templet 是AnimationClip对象 没有getAnimationCount方法!!! for (var i=0,iN...
来源: Laya_社区 发布时间: 20170630
... 下面的圆形金币是图片,我添加了 on(Laya.Event.MOUSE_DOWN, this,this.mouseHandlerDown,); on(Laya.Event.MOUSE_UP, this,this.mouseHandlerUp,[i]);[/i] [i] [/i] [i]为什么在这个bg.png上面点击,下面的金币也会有点击事件?[/i] 附件 : --> 2018-01-31 添加评论 免费...
来源: Laya_社区 发布时间: 20180131
...法编译了 也没看到那里出错 这个是什么原因 报错 The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten 附件 : --> 2020-07-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20200703