大约有 396 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer numChildren parent particleRenderer particleSystem scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addCompone...
来源: Laya3.0_api 发布时间: 20231115
...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer meshFilter numChildren parent scene skinnedMeshRenderer timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponen...
来源: Laya3.0_api 发布时间: 20231115
...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer numChildren parent scene timer trailFilter trailRenderer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInst...
来源: Laya3.0_api 发布时间: 20231115
...; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable里面把CANNON.Body加入到CANNON.World, OnDisable则移除, onUpdate里面根据CANNONBody的信息更新(this.owner as Laya.MeshSprite).transfrom.(最好用插值,平滑点,四元数代码就拷贝Laya源码改改...
来源: Laya_社区 发布时间: 20200217
...图 this.tMap.createMap("./map/desert.json", viewRect); } onEnable() { console.log(Laya.TiledMap) } onDisable() { }} [/code] 重点来了,我们切回到编辑模式,选中场景文件,选中脚本文件并拖拽至runtime属性中。 到了这一步,...
来源: Laya_社区 发布时间: 20190321
...aya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { this.setSpotLight(); } // 创建聚光灯 setSpotLight(): void { this.spotLight.pos(336, 280); let spotLightComponent = this.spotLight.getComponent(Laya.SpotLight2D); spotLightComponent.color = new Laya.Col...
来源: Laya3.0_文档 发布时间: 20251010
... 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_文档 发布时间: 20251010