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

大约有 114 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0034 秒)

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

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

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

22. 请问中.scene文件中添加的时间轴动画该怎么调用(非.ani文件) [ 67%]

...了 2019-03-06 0 0 分享 微博 QZONE 微信 xiaolang 赞同来自: this.owner["found"] 2019-03-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 leonszheng 相关问题 两个对象new了一个相同的对象,调用第一个的一个...

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

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

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

24. 挂载元素的空间变换没有加上被挂载元素的本身空间变换 [ 67%]

...sform.worldMatrix;                     Matrix4x4.multiply((_owner as Sprite3D)._transform.worldMatrix, avatarWorldMatrix, spriteWorldMatrix);                     spriteTransform.worldMatrix = spriteWorldMatrix; 这是引擎里的更新空间变换代码,被挂载的...

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

25. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 67%]

...ength = 10; spi.filters = spi1.filters = spi2.filters = [blurFilter]; this.owner.parent.addChild(spi); this.owner.parent.addChild(spi1); this.owner.parent.addChild(spi2); // }) }求教以下大佬们,是否还有其他的截屏方法(使用了drawToCanvas,因为3d场景对象比较复杂,无...

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

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

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

27. this.scene.physicsSimulation.rayCastAll 报错 [ 66%]

...到的物体 this.text.text = "点击到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") }   上述代码运行时候报错,一直无法解决,请求大佬帮忙看一下问题?(.scene.physicsSimulation属性为灰色,不可使用)     报错如下...

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

28. 发射射线检测不到,物体有包围盒 [ 66%]

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

29. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 66%]

...dth - bg.width >> 1, Laya.stage.height - bg.height >> 1); this.owner.addChild(bg); } private createTimerAnimation(): void { this.counter = new Laya.Clip(this.clipSkin, 10, 1); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya.stage.width - this.counter.wi...

来源: Laya3.0_文档 发布时间: 20230830

30. dialog弹窗不居中(laya2.0.0beta5) [ 65%]

...dialog添加了控制脚本,并在脚本中的onstart函数中添加this.owner.popup(),在laya调试运行显示居中了。但是到微信里面报this.owner.popup undefined错误 2018-12-12 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, ...

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