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

大约有 404 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)

241. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 44%]

...已加载的 .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

242. 视频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

....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

243. Maximum call stack size exceeded [ 44%]

...         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

244. TypeError: Cannot read property 'length' of null [ 44%]

...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

245. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...aya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { // 加载资源 Laya.loader.load("resources/spritelight.png", Laya.Loader.IMAGE).then(() => { this.setSpriteLight(); this.setDirectLight(); this.setBackground(); }); } // 配置精灵灯光 setSpriteLigh...

来源: Laya3.0_文档 发布时间: 20251010

246. Panel初始化BUG [ 43%]

...: 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

247. 动画实例在调用含有名字参数的时候获取不到边界 [ 43%]

...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

248. Box2D使用Destory join报错? [ 41%]

...做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的使用 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? 预设怎么在代码中使用 求高人分享使用protobuff框...

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

249. laya.d3.physics.CharacterController [ 41%]

...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

250. laya.d3.core.Camera_API3.0 [ 41%]

...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