大约有 4 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0025 秒)
...Controll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smooth: number = 2;//...
来源: Laya3.0_文档 发布时间: 20251010
...s.searchButton(child); } } } //处理按钮缩放事件 onButtonScaleEvent(target: Laya.Button) { target.on(Laya.Event.MOUSE_DOWN, this, this._onScaleBtnDown); target.on(Laya.Event.MOUSE_UP, this, this._onScaleBtnOut); } //按钮放大 _onScaleBtnDown(e: Laya.Event) { console.log("开始缩放"); e....
来源: Laya3.0_文档 发布时间: 20251010
...因此我们可以这样获取: //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); 注:这段代码来自“3D入门示例”的“Animator”场景。 3.4 编辑动画状态机 动画状态机 面板中,可以做一些常规的操作,如动图3-5...
来源: Laya3.0_文档 发布时间: 20251010
...;朋友abc11''31ABC朋友</span><span href='http://www.baidu.com' target='_blank'>百度</span>"; Laya.stage.addChild(html); 运行效果: Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-03-03 17:33:43 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20230303