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

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

141. 报无法找到资源,未升级ide之前报错 [ 47%]

...: 2023-07-17 17:12 浏览: 3508 关注: 3 人 逸辰 • 2023-07-19 22:52 onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.j...

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

142. 使用3D UI · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

... } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Mai...

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

143. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

... extends Laya.Script { public _list: Laya.List; constructor() { super(); } onAwake(): void { var list: Laya.List = new Laya.List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // ...

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

144. laya.d3.core.Camera_API3.0 [ 42%]

...normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild r...

来源: Laya3.0_api 发布时间: 20231115

145. 2D相机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.createCamera2D(); } createCamera2D() { //2D相机必须添加在2D区域节点下,因此需要先创建一个2D区域节点 this.area2D = new Laya.Area2D(); //设置2D区域节点的位置和大小 this...

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

146. [LayaAirIDE3]2d相机打包后问题 [ 41%]

...te deadZone: number = 45;     private isEnabled: boolean = true;      onAwake() {         this.createJoystick();         this.bindEvents();                 // 监听全局事件         Laya.stage.on("DIALOG_SHOW", this, this.disable);         Laya.stage.on("DIALOG_HIDE"...

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

147. laya.d3.webxr.core.WebXRCamera_API3.0 [ 41%]

...normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild r...

来源: Laya3.0_api 发布时间: 20231115

148. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Scene.open("Msg.ls", false, { "text": "点击成功!" }); }); } } 其中,Scene场景有一个Button组件,需要在IDE...

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

149. laya.d3.core.light.DirectionLight [ 38%]

...mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:A...

来源: Laya2.0_api 发布时间: 20190513

150. laya.d3.core.light.PointLight [ 38%]

...mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:A...

来源: Laya2.0_api 发布时间: 20190513