大约有 343 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0066 秒)
Laya_社区(259) Laya3.0_api(21) Laya2.0_文档(17) laya_api(17) Laya2.0_api(14) Laya3.0_文档(10) Laya_示例(3) Laya2.0_示例(2)
... this._map = null; } initData (map, objectKey = false) { this._map = map; this.isAloneObject = objectKey; } addAniSprite (sprite) { if (this.aniSpriteArray == null) { ...
来源: Laya_社区 发布时间: 20220627
... runCallLater(caller: any, method: Function): void; } class TimerHandler { key: number; repeat: boolean; delay: number; userFrame: boolean; exeTime: number; caller: any; method: Function; args: Array<any>; clear(): void; run(widthClear: boolean): void; } } woody1720596907 • 2017-11-09 17:31 ...
来源: Laya_社区 发布时间: 20171109
...ethod); if (handler && handler.method != null) { this._map[handler.key] = null; handler.run(true); } } 使用示例如下: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake():...
来源: Laya3.0_文档 发布时间: 20251010
...).play();`,第二个参数的值“walk”就是动画模板的名称(*key*)。 - 当被多次使用的时候,使用动画模板可以节省CPU的开销,但是,如果只是偶尔或一次使用,那就不要使用动画模板,因为节省CPU开销是以牺牲一定的内存开销为...
来源: Laya2.0_文档 发布时间: 20210715
...).play();`,第二个参数的值“walk”就是动画模板的名称(*key*)。 - 当被多次使用的时候,使用动画模板可以节省CPU的开销,但是,如果只是偶尔或一次使用,那就不要使用动画模板,因为节省CPU开销是以牺牲一定的内存开销为...
来源: Laya2.0_文档 发布时间: 20210715
...通过快捷键`Ctrl + Shift +P `调出命令面板,搜关键字 `open key`,找到 `打开键盘快捷方式(JSON)`的命令,如下图所示,点击打开。  点击后,我们看到快捷盘配置的JSON里,有刚刚绑定了快捷键的配置信息。这里,我们...
来源: Laya2.0_文档 发布时间: 20210715
...的情况下,调用此方法会重新刷新缓存。Sprite regComponent(key:String, compClass:Class):void[static] 注册组件类映射。 用于扩展组件及修改组件对应关系。 View regViewRuntime(key:String, compClass:Class):void[static] 注册UI视图类的逻辑处理类。 View r...
来源: laya_api 发布时间: 20170929
...).getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); this.pivot = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot") as Laya.Sprite3D; let newRot = new Laya.Quaternion(0, 0, 0, 0); Laya.Quater...
来源: Laya_社区 发布时间: 20171228
...tends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图片 */ loadTexture(url: string, x: number = 0, y: number ...
来源: Laya3.0_文档 发布时间: 20251010
...的情况下,调用此方法会重新刷新缓存。Sprite regComponent(key:String, compClass:Class):void[static] 注册组件类映射。 用于扩展组件及修改组件对应关系。 View regViewRuntime(key:String, compClass:Class):void[static] 注册UI视图类的逻辑处理类。 View r...
来源: laya_api 发布时间: 20170929