大约有 1,253 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0047 秒)
...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
...不要让类相互继承,然后又相互引用就解决了,比如 export default class A{ //public instance:B 这种就是类相互继承,然后又相互引用,改为: public instance:any } export default class B extends A{ } 2024-12-16 1 0 分享 微博 QZONE 微信 正...
来源: Laya_社区 发布时间: 20241209
...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
...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
...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
...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
...现脚本控制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
...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
...在运行 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
...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