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

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

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

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

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

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. 加载.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. 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_文档 发布时间: 20250214

30. 位图切片组件 · LayaAir3.3 · 引擎文档 · 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_文档 发布时间: 20240910