大约有 404 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
...已加载的 .mc 资源路径数组 */ private loadedClips: string[] = []; onEnable(): void { this._animator = this.owner.getComponent<Laya.Animator2D>(Laya.Animator2D); // 1. 创建 Laya.Animation 并挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMon...
来源: Laya_社区 发布时间: 20251211
....VideoNode; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { // 视频纹理更新帧率 this.video.videoTexture.useFrame = true; this.video.videoTexture.updateFrame = 30; this.video.play(); ...
来源: Laya3.0_文档 发布时间: 20251010
... this.loadScene("main.scene"); } onEnable() { console.log('init'); } } /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ class GameConfig { stati...
来源: Laya_社区 发布时间: 20201110
...k/study/project/client/test/air_war/bin/js/bundle.js:70:18) at GameManager.onEnable (file:///D:/work/study/project/client/test/air_war/bin/js/bundle.js:47:18) at Scene._activeScripts (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:13092:46) at Scene._processActive (file:///D...
来源: Laya_社区 发布时间: 20200309
...aya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { // 加载资源 Laya.loader.load("resources/spritelight.png", Laya.Loader.IMAGE).then(() => { this.setSpriteLight(); this.setDirectLight(); this.setBackground(); }); } // 配置精灵灯光 setSpriteLigh...
来源: Laya3.0_文档 发布时间: 20251010
...: 4231 关注: 2 人 Recovery • 2021-11-15 18:42 改成这样试试看 onEnable(): void { Laya.loader.load("comp/image.png", Laya.Handler.create(this, this.onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, ...
来源: Laya_社区 发布时间: 20211108
...H= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyUnit.push(new Laya.Animation()); this.loadUnit(); } loadUnit(){ for(let i of this.playerUnit ){ i.loadAtlas("./...
来源: Laya_社区 发布时间: 20200910
...做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的使用 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? 预设怎么在代码中使用 求高人分享使用protobuff框...
来源: Laya_社区 发布时间: 20181106
...spublic class CharacterControllerInheritanceCharacterController PhysicsComponent Component Object CharacterController 类用于创建角色控制器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By canCollideWith : int 获取可碰撞的碰...
来源: Laya2.0_api 发布时间: 20190513
...ectRatio boundFrustum canblitDepth clearColor clientHeight clientWidth components cullingMask depthTextureFormat depthTextureMode destroyed displayedInStage enableBlitDepth enableBuiltInRenderTexture enableHDR farPlane fieldOfView fxaa hideFlags id is3D layer maxlocalYDistance msaa nearPlane normali...
来源: Laya3.0_api 发布时间: 20231115