大约有 395 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0054 秒)
Laya_社区(159) Laya3.0_api(85) Laya3.0_文档(63) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
.../Script1.ts @regClass() export class Script1 extends Laya.Script { declare owner : Laya.Sprite3D; } //TestCustomEditor.ts @IEditorEnv.customEditor(Script1) export class TestCustomEditor extends IEditorEnv.CustomEditor { declare owner: Laya.Sprite3D; onSceneGUI(): void { IEditorEnv.Handles.drawHemiSp...
来源: Laya3.0_文档 发布时间: 20250214
...处理 list.renderHandler = new Laya.Handler(this, this.updateItem); this.owner.addChild(list); // 设置数据源为对应图片的路径 var data: any[] = []; for (var i: number = 0; i < 10; ++i) { data.push("resources/res/ui/listskins/1.jpg"); data.push("resources/res/ui/listskins/2.jpg"); dat...
来源: Laya3.0_文档 发布时间: 20240910
...true; rg.selectHandler = new Laya.Handler(this, this.onSelectChange); this.owner.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2025 all right reserved,power...
来源: Laya3.0_文档 发布时间: 20240910
... string): Laya.Button { var btn: Laya.Button = new Laya.Button(skin); this.owner.addChild(btn); return btn; } } 上述代码运行效果如动图2-1所示: (动图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2024-09-10 16:27:03 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20240910
... Boolean[override] [read-only] 获取是否为单实例组件。 Script3D owner : Node [只读]获取所属Node节点。 ComponentPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By _isScript():Boolean[override] Script3D _onAdded():void[override] Scrip...
来源: Laya2.0_api 发布时间: 20190513
... : Boolean[override] [read-only] 获取是否为单实例组件。 Script owner : Node [只读]获取所属Node节点。 ComponentPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By _isScript():Boolean[override] Script destroy():void 销毁组件 Compone...
来源: Laya2.0_api 发布时间: 20190513
...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Prefab }) private loadingScenePrefab: Laya.Prefab; private loadingScene: Laya.Node; constructor() { super(); } /** * 第一次执行update之前执行,只会执行一次 */ onSt...
来源: Laya3.0_文档 发布时间: 20240910
...dy3D overrideGravity : Boolean 获取是否重载重力。 Rigidbody3D owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] ...
来源: Laya2.0_api 发布时间: 20190513
...到的物体 this.text.text = "点击到了" + this._outHitResult.collider.owner.name; } } } 2020-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20200917
...his.out); //将射线碰撞到的物体设置为红色 ((this.out.collider.owner).getComponent(Laya.MeshRenderer).sharedMaterial as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0); /* ……省略若干代码 */ 4.4 使用异形物理射线 常规的物理射线是用一条...
来源: Laya3.0_文档 发布时间: 20250103