大约有 388 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0044 秒)
... export default class btn1 extends Laya.Script { constructor(){super();} onEnable(){} onClick(){ alert("id="+this.id); //这里有一个id,但是系统自动生成的,无法获知这个id代表哪个按钮被点(因为我有4个按钮都绑了这个js) alert("name="+this.name); //未定义...
来源: Laya_社区 发布时间: 20181029
...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer meshFilter numChildren parent scene simpleSkinnedMeshRenderer timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addCo...
来源: Laya3.0_api 发布时间: 20231115
...文件,之前在2.3.0ide版本中也是同样的问题,在GameControl onEnable中执行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = th...
来源: Laya_社区 发布时间: 20191216
... Laya.Script { @property({type: Laya.Button}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一个steam_appid.txt 文件,其中只...
来源: Laya3.0_文档 发布时间: 20250214
...ysics.jointClasspublic class MotorJointInheritanceMotorJoint JointBase Component Object 马达关节:用来限制两个刚体,使其相对位置和角度保持不变 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By angularOffset : Number...
来源: Laya2.0_api 发布时间: 20190513
... { this.openList.set(id, scene); scene.onEnable(); scene.onOpened(param); scene.open(false, param); }); 附件 : --> 2023-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20231221
...码是如何使用CLICK 的(以下代码来自“2D入门示例”): onEnable(): void { console.log("IndexRT onEnable") //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya.Scene.open("scenes/UiMain.ls"); })...
来源: Laya3.0_文档 发布时间: 20240910
...**028 赞同来自: 你可以试试他内嵌模式生成的代码 会调用onEnable, 然后加断点跟踪他的代码啦。 我就跟踪了一下 发现只要调用createView({})就可以了,当然这里的gm是不会告诉你这么干的 2019-04-24 0 1 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20190422
...ned();但是首次打开会触发onAwake 下次添加到舞台会触发onEnable。 亲测有效、做UI框架管理可以这个方法 2019-04-11 0 0 分享 微博 QZONE 微信 石圣 赞同来自: 这个bug到目前为止官方一直没修复,尽管论坛上官方人员回复说已经修复了...
来源: Laya_社区 发布时间: 20181208
...jointClasspublic class RevoluteJointInheritanceRevoluteJoint JointBase Component Object 旋转关节强制两个物体共享一个锚点,两个物体相对旋转 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By anchor : Array[首次设置...
来源: Laya2.0_api 发布时间: 20190513