大约有 22 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0071 秒)
...islooping的false和true的切换 3D物体active从false设置为true后,Script3D的onUpdate会重复执行 Laya 2.4版本List selectEnable设置为true时点击后List中box visible属性变为false 两个碰撞体必须都设置isSensor为false才能监测到碰撞!!! 问题状态 最新...
来源: Laya_社区 发布时间: 20171224
...光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.timer.currTim...
来源: Laya2.0_文档 发布时间: 20210715
...光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.timer.currTim...
来源: Laya2.0_文档 发布时间: 20210715
...alse,false); //}); })); })); })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAw...
来源: Laya_社区 发布时间: 20200611
...讲解: > 移动灯光脚本 ```typescript class LightMoveScript extends Script3D { //需要操作的光源数组 public var lights: Array = []; //光源对应的位置偏移数组 public var offsets: Array = []; //光源对应的移动半径数组 public var moveRanges: Array = []; public functio...
来源: Laya2.0_文档 发布时间: 20210714
...再把CANNON.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Bod...
来源: Laya_社区 发布时间: 20200217
....1 LayaAir2的组件系统中有3种组件的基类,Component、Script和Script3D。 LayaAir3.0合并了Script和Script3D,也就是只使用Script即可。Script3D仍然可以使用,但它只是Script的别名。Script可以挂载到2D对象,也可以挂载到3D对象。 4.2 LayaAir2中,Co...
来源: Laya3.0_文档 发布时间: 20251010
...islooping的false和true的切换 3D物体active从false设置为true后,Script3D的onUpdate会重复执行 问题状态 最新活动: 2019-12-19 14:59 浏览: 1002 关注: 3 人 152*****152 • 2019-12-19 15:07 我打印了outHitResult.succeeded,全是false 陆仁毅 • 2019-12-19 16:00 @152**...
来源: Laya_社区 发布时间: 20191219
...s.text); } } //激活启动类 new Main(); class MonkeyScript extends Laya.Script3D{ private _scene:Laya.Scene3D; private _text:Laya.Text; private _camera:Laya.Camera; private rotation:Laya.Vector3; private lastPosition:Laya.Vector2; private distance:n...
来源: Laya_社区 发布时间: 20190531
...); } } //激活启动类 new MultiTouch(); class MonkeyScript extends Laya.Script3D{ private _scene:Laya.Scene3D; private _text:Laya.Text; private _camera:Laya.Camera; private rotation:Laya.Vector3; private lastPosition:Laya.Vector2; private distance:n...
来源: Laya_社区 发布时间: 20190605