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

大约有 1,253 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0047 秒)

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_示例 发布时间: 20250219

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

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

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

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

437. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...现脚本控制Radio: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this...

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

438. 计时器-延迟调用 [ 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_示例 发布时间: 20250219

439. Steam扩展实例 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...在运行 return false; } m_bInitialized = true; return true; } 然后在exports.cpp中,实现Steam初始化Initialize的接口封装, jsvm_value jsInitializeSteam(jsvm_env env, jsvm_callback_info info) { bool success = SteamManager::GetInstance()->Initialize(); printf("init steam!!!"); jsvm_...

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

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