大约有 50 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0036 秒)
...什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) { var _this = this; ObjectRotate.__super.prototype._initialize.call(this,owner); //在this(调取本函数的的对象)作用域内,侦听mousedown(鼠标按下)事件,如果侦听...
来源: Laya_社区 发布时间: 20170810
...rue; this.twoFirst = true; } onStart(){ this._scene = this.owner.parent as Laya.Scene3D; this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text; this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCo...
来源: Laya_社区 发布时间: 20190605
...onstructors constructor Properties _bones _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bones bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset localBounds material materials ratioIgnor receiv...
来源: Laya3.0_api 发布时间: 20231115
...onstructors constructor Properties _bones _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bones bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset localBounds material materials ratioIgnor receiv...
来源: Laya3.0_api 发布时间: 20231115
...tate); this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.elements[0] = Laya.stage.mouseX; this._point.elements[1] = Laya.stage.mouseY; this._camera.viewp...
来源: Laya_社区 发布时间: 20180201
...sform.worldMatrix; Matrix4x4.multiply((_owner as Sprite3D)._transform.worldMatrix, avatarWorldMatrix, spriteWorldMatrix); spriteTransform.worldMatrix = spriteWorldMatrix; 这是引擎里的更新空间变换代码,被挂载的...
来源: Laya_社区 发布时间: 20170905
...了Scene3d scene3d.name = 'good'; self.owner.addChild(scene3d); var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent"); // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.c...
来源: Laya_社区 发布时间: 20220506
... RuntimeScript; onStart() { // 获得场景的Runtime对象 this.ui = this.owner.scene as RuntimeScript; // Button添加鼠标事件,让Image不显示 this.ui.Button.on( Laya.Event.MOUSE_DOWN, null, ()=>{ this.ui.Image.visible = false; }); } } ui 属性直接从脚本中通过 this.owner.scene ...
来源: Laya3.0_文档 发布时间: 20241014
...D; private camera : Laya.Camera; private scene: Laya.Scene; public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); } public _start(state:Laya.RenderState):v...
来源: Laya_社区 发布时间: 20181020
... Laya.Physics.I.allowSleeping = false; this.strWorldRoot= this.owner.scene.strWorldRoot; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y); v...
来源: Laya_社区 发布时间: 20231123