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

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

21. 给3D场景scene添加鼠标事件无效 [ 68%]

...e。结果是无反应。 4、绑定鼠标事件之前,是使用 scene = owner.scene 获取到当前scene对象的。并且该scene对象不为空。   如下图:   原本目标是希望在3D场景上覆盖一层2D Sprite,这些2D Sprite是需要拖拉和划屏操作的,同时又需要对 ...

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

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

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

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

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

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

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

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

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

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

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

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

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

27. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 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

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

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

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

29. 发射射线检测不到,物体有包围盒 [ 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

30. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

... } = Laya; @regClass() export class DayNight extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.DirectionLight2D; private dayTime: number = 0; private dayDuration: number = 24; // 一个完整周期的秒数 private displayText: Laya.Text; // 文本显示当前时间 onAwake()...

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