大约有 192 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0050 秒)
...ce instantiate load Constructors constructor new Sprite3D(name?: string, isStatic?: boolean): Sprite3D Overrides Node.constructor Defined in laya/d3/core/Sprite3D.ts:142 创建一个 Sprite3D 实例。 Parameters Default value name: string = null 精灵名称。 Default value isStatic: boolean = fal...
来源: Laya3.0_api 发布时间: 20231115
...类唯一标志时出了问题 /** * 返回类的唯一标识 */ private static _getClassSign(cla: any): string { var className = cla["__className"] || cla["_$gid"]; if (!className) { cla["_$gid"] = className = Pool._CLSID + ""; Pool._CLSID++; } return className; } cla["__className"] || cla["_$gid"]...
来源: Laya_社区 发布时间: 20250819
...### **Text 类中相关接口:** **registerBitmapFont () 方法** public static function registerBitmapFont(name:String, bitmapFont:BitmapFont):void 注册位图字体。 参数 name:String — 位图字体的名称。 bitmapFont:BitmapFont — 位图字体文件。 **unregisterBitmapFont () 方...
来源: Laya2.0_文档 发布时间: 20201114
...返回创建的handler实例。 */ public static function create(caller:*, method:Function, args:Array = null, once:Boolean = true):Handler { if (_pool.length) return _pool.pop().setTo(caller, method, args, once); retur...
来源: Laya_社区 发布时间: 20180704
...2,在Script1中要调用Script2应该怎么处理呢? 1、Script2做成static instance? 2、findeNode(Node2).getComponent(Script2).doSomeThing()? 类似这样吗,Script中有findNode类似的api吗? 2020-03-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20200311
...为空表示设置指定声音(背景音乐或音效)的音量。 */ static setSoundVolume(volume: number, url: string = null): void { if (url) { SoundManager._setVolume(url, volume); } else { SoundManager.soundVolume = volume; for (let i = SoundManager._channels.length - 1; i >= 0; i--) { le...
来源: Laya3.0_文档 发布时间: 20251010
...import laya.ui.Image; class Item extends Box { /***单元格宽***/ public static var WID:int = 375; /***单元格高***/ public static var HEI:int = 85; /***单元格中图片***/ public var img:Image; public function Item() { //设置大小宽高 size(WID, HEI); //实例化图片 img = new Image()...
来源: Laya2.0_文档 发布时间: 20210715
...tY right rotation scaleX scaleY scene scene3D scrollRect skewX skewY stage staticCache texture timer top transform url viewport visible width x y zOrder manager root Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer ...
来源: Laya3.0_api 发布时间: 20231115
...ined in laya/d3/WebXR/core/WebXRSessionManager.ts:21 XRReferenceSpace TODO Static EVENT_FRAME_LOOP EVENT_FRAME_LOOP: string = "xrFrameLoop" Defined in laya/d3/WebXR/core/WebXRSessionManager.ts:11 Static EVENT_MANAGER_END EVENT_MANAGER_END: string = "xrManagerDestory" Defined in laya/d3/WebXR/core/We...
来源: Laya3.0_api 发布时间: 20231115
...dy放到特定容器(Sprite),並對容器使用ScrollRect捲動時,Static type RigidBody的貼圖會錯位,但 Collider碰撞都正常,只有顯示異常 若改用容器的x, y進行座標偏移,會出現殘影,顯示仍然有問題 若不用容器,直接對 stage做scrollRect顯...
来源: Laya_社区 发布时间: 20181215