大约有 395 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0051 秒)
Laya_社区(159) Laya3.0_api(85) Laya3.0_文档(63) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
... } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake()...
来源: Laya3.0_文档 发布时间: 20250103
....y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Laya.Clip = new Laya.Clip("resources/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"...
来源: Laya3.0_文档 发布时间: 20240910
...定冲突位掩码碰撞的类别,category位操作的结果RigidBody owner : Node [只读]获取所属Node节点。 Component type : String 刚体类型,支持三种类型static,dynamic和kinematic类型 static为静态类型,静止不动,不受重力影响,质量无限大,可以...
来源: Laya2.0_api 发布时间: 20190513
...te: Laya.AnimatorState | Laya.AnimatorState2D) { ... this.model = animator.owner as Laya.Sprite3D;//得到Cube节点 } ... /** * 动画状态退出时执行。 */ onStateExit(): void { console.log("动画退出了"); //平移操作 let position = new Vector3(1, 1, 1); this.model.transform.translate(...
来源: Laya3.0_文档 发布时间: 20240910
...94) at RenderSprite3D.__proto._graphics (laya.core.js:6125) at Owner.__proto.render (laya.core.js:15656) at RenderSprite3D.__proto._childs (laya.core.js:6194) at Component.__proto.render (laya.core.js:15656) at RenderSprite3D.__proto._childs (laya.core.js:6194) at...
来源: Laya_社区 发布时间: 20181120
...} = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let...
来源: Laya3.0_文档 发布时间: 20241014
...} = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let...
来源: Laya3.0_文档 发布时间: 20250214
... } 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.rotationEuler.x, this.transform.rotation...
来源: Laya_社区 发布时间: 20170714
...vent.MOUSE_UP, this, this.mouseUp); this.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.timer.delta; if (!isNaN(this.lastMouseX) && !isNaN(this.lastMouseY) && this.isMouseDown) { Laya.InputManager.hasKeyDown(8...
来源: Laya3.0_文档 发布时间: 20250103
...法,使用时重写覆盖即可 */ onStart(): void { this.camera = this.owner as Laya.Camera; if (this.target) { this.target.transform.position.cloneTo(this.curpos); this.delatpos = new Laya.Vector3(); } } /** * 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponen...
来源: Laya3.0_文档 发布时间: 20240910