大约有 14 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
...什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) { var _this = this; ObjectRotate.__super.prototype._initialize.call(this,owner); //在this(调取本函数的的对象)作用域内,侦听mousedown(鼠标按下)事件,如果侦听...
来源: Laya_社区 发布时间: 20170810
...大,没有打包 console.log("目标所属的OWER"+this.owner.name + ""); console.log("目标所属的OWER:"+this.owner.name.slice(12,13) + ""); Laya.Scene.open("test/PuzzleScene"+this.owner.name.slice(12,13)+".scene",true,null,null,null); 附件...
来源: Laya_社区 发布时间: 20201115
....display.Sprite; import laya.events.Event; public class Btn { private var _owner:Sprite; private var _isScal:Boolean; public function Btn() { trace("btn的附加类已经开始执行"); } //设置owner函数,可以直接获取到Button组件的实例 public function set owner(v:Sprite):void { _own...
来源: Laya_社区 发布时间: 20161014
...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
...方法 TrailFilter resetGeometry(){ var render = this._owner._render; var element = render._renderElements[0]._geometry; element && element.resetGeometry() } TrailGeometry resetGeometry(){ var count=this._endIndex; for (var i=this._activeIndex;i < coun...
来源: Laya_社区 发布时间: 20191017
...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_社区 发布时间: 20190531
...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
...此方法只执行一次 */ onAwake() { //得到3D对象 this.obj = this.owner; } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为...
来源: Laya_社区 发布时间: 20200611
...or3(0,0,0); } onStart(){ this.scene = this.owner.parent; this.text = this.scene.parent.getChildByName("ceshi"); this.camera = this.scene.getChildByName("camera"); } onUpdate(){ let touchCount = this.scene...
来源: Laya_社区 发布时间: 20190531
... } onStart():void{ this.lab=this.owner as Laya.Label; } onUpdate():void{ if(this.lab==null){ console.log("lab为空"); return; } t...
来源: Laya_社区 发布时间: 20200602