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

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

431. 加载-单一类型资源加载 [ 70%]

...Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_SingleType { constructor() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("res/apes/monkey0.png", Handler.create(this, this.onAssetLoaded1)); // 加载多张png类型资源 Laya.loa...

来源: Laya2.0_示例 发布时间: 20260819

432. 水平布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 70%]

...。示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HBox }) public hbox: Laya.HBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.h...

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

433. laya.d3.math.Plane_API3.0 [ 70%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Plane" Plane Class Plane 平面。 Hierarchy Plane Index Constructors constructor Properties PlaneIntersectionType_Back PlaneIntersectionType_Front PlaneIntersectionType_Intersecting Access...

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

434. 请问js怎么触发按钮的onclick事件,按教程的写,触发不知道为什么。 [ 70%]

...2-2-5 按里面的步骤为按钮绑定一个btn1.js 我在这样写的   export default class btn1 extends Laya.Script { constructor(){ alert("1"); //执行后这里触发了 super();} onEnable(){ alert("2"); //执行后这里触发了 } onclick(){ alert("3"); //执行后点击按钮这里没触...

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

435. [LayaAirIDE3]发布后的bundle.js,类的定义顺序错误 [ 70%]

...不要让类相互继承,然后又相互引用就解决了,比如   export default class A{   //public instance:B  这种就是类相互继承,然后又相互引用,改为: public instance:any   }   export default class B extends A{   } 2024-12-16 1 0 分享 微博 QZONE 微信 正...

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

436. laya.d3.webxr.core.WebXRExperienceHelper_API3.0 [ 70%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/WebXR/core/WebXRExperienceHelper" WebXRExperienceHelper Class WebXRExperienceHelper 类用来管理WebXR author miner Hierarchy WebXRExperienceHelper Index Properties glInstance supported xr_Man...

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

437. laya.html.HtmlElement_API3.0 [ 70%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/html/HtmlElement" HtmlElement Class HtmlElement Hierarchy HtmlElement Index Constructors constructor Properties _attrs name obj space style text type pool Methods fetchAttributes getAttr getAttrBoo...

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

438. laya.d3.physicscannon.shape.CannonColliderShape_API3.0 [ 70%]

...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/physicsCannon/shape/CannonColliderShape" CannonColliderShape Class CannonColliderShape ColliderShape 类用于创建形状碰撞器的父类,该类为抽象类。 Hierarchy CannonColliderShape...

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

439. 计时器-延迟调用 [ 70%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CEN...

来源: Laya2.0_示例 发布时间: 20260819

440. laya.d3.renderobjs.renderobj.RenderElementOBJ_API3.0 [ 70%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/RenderObj/RenderElementOBJ" RenderElementOBJ Class RenderElementOBJ Hierarchy RenderElementOBJ SkinRenderElementOBJ InstanceRenderElementOBJ Implements IRenderElement Index Constructo...

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