• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 16 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)

1. [LayaAirIDE3]2d相机打包后问题 [ 100%]

...EIGHT;          // 摇杆事件监听         this.joystickScript.owner.on(Joystick.MOVE, this, (data: any) => {             this.playerScript.move(data.direction, data.force);         });          this.joystickScript.owner.on(Joystick.END, this, () => {           ...

来源: Laya_社区 发布时间: 20251125

2. 物体随着鼠标滑动旋转脚本 [ 94%]

...什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) {     var _this = this;     ObjectRotate.__super.prototype._initialize.call(this,owner);       //在this(调取本函数的的对象)作用域内,侦听mousedown(鼠标按下)事件,如果侦听...

来源: Laya_社区 发布时间: 20170810

3. 初次加载场景正确,返回后只加载第一个场景 [ 93%]

...大,没有打包         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

4. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 92%]

....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

5. 射线检测报错,outHitInfo.sprite3D=null; [ 91%]

...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

6. 2.3.0beta 各种bug [ 89%]

...方法       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

7. 加载.lh文件 运行后黑屏 无法显示 [ 87%]

...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

8. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 86%]

....spRole.texture.sourceHeight = Laya.stage.height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 微博 QZONE 微信 什么被折叠? 0 个回复被折叠 该问题目前已经被锁定,...

来源: Laya_社区 发布时间: 20250109

9. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 85%]

...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

10. UNITY导出的模型旋转不了 [ 83%]

...此方法只执行一次 */ onAwake() { //得到3D对象 this.obj = this.owner; } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置...

来源: Laya_社区 发布时间: 20200611