大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...mera; constructor() { super(); } public transform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEu...
来源: Laya_社区 发布时间: 20170714
...JavaScript代码可以调用这些原生功能。 extern "C" { LAYAEXTAPI void LayaExtInit(jsvm_env env, jsvm_value exp) { ... // 注册Steam初始化函数 jsvm_value fnInitSteam; jsvm_create_function(env, "initializeSteam", SIZE_MAX, jsInitializeSteam, nullptr, &fnInitSteam); jsvm_set_named_pr...
来源: Laya3.0_文档 发布时间: 20251010
...动画事件函数,名字是可以对应上的 public function ShowMsg():void { trace("ShowMsg"); showMsgFunc && showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Scene3D.load("res/threeDimen/scene/LayaScene_Animatio...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.stage.bgColor = "#232628"; this.createApes(); } private createApes(): void { //显示两只猩猩 this.ape1 = new Sprite(); this.ape2 = new Sprite(); this.ape1.loadImage("res/apes/monkey2.png"); this.ape2.loadImage("res/apes/monkey2.png"); this.ape1.pivot(55, 72); this.ape2.pivot(55, 72); this....
来源: Laya2.0_示例 发布时间: 20260303
... Returns Graphics Accessors cmds get cmds(): any[] set cmds(value: any[]): void Defined in laya/display/Graphics.ts:151 命令流。存储了所有绘制命令。 Returns any[] Defined in laya/display/Graphics.ts:155 命令流。存储了所有绘制命令。 Parameters value: any[] Returns void Met...
来源: Laya3.0_api 发布时间: 20231115
...灰色滤镜 Returns ColorFilter onAfterDeserialize onAfterDeserialize(): void Defined in laya/filters/ColorFilter.ts:241 Returns void reset reset(): ColorFilter Defined in laya/filters/ColorFilter.ts:182 重置成单位矩阵,去除滤镜效果 Returns ColorFilter setByMatrix setByMatrix(matrix: ...
来源: Laya3.0_api 发布时间: 20231115
...mera; constructor() { super(); } public transform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEu...
来源: Laya_社区 发布时间: 20190224
...; } private function initView():void { _templet = new Templet(); _templet.on(Event.COMPLETE,this,parseComplete); _templet.on(Event.ERROR,this,onError); _temple...
来源: Laya_社区 发布时间: 20170204
...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node...
来源: laya_api 发布时间: 20170929
...], Handler.create(this, this.onAssetsLoaded)); } private onAssetsLoaded(): void { this.ape = new Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 this.switchTexture(); this.ape.on("click", this, this.swi...
来源: Laya_示例 发布时间: 20260303