大约有 281 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0074 秒)
...前修改有效,兼容ui constructor() { super(); this.once(Laya.Event.DISPLAY, this, this.onCreate); this.once(Laya.Event.UNDISPLAY, this, this.onDestroy); } /** * 加入场景 */...
来源: Laya_社区 发布时间: 20181114
... laya.utils.Handler.create(this, loadComplete));//加载资源 (function (_super) {//新建一个类Dialog_Instance继承自laya.ui.Dialog。 function Dialog_Instance() { Dialog_Instance.__super.call(this);//初始化父类 var bg = new laya.ui.Image("resource/ui/bg.png");//新建一个 Image 类的...
来源: Laya3.0_api 发布时间: 20231115
...blic curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new Laya.Vector3();...
来源: Laya3.0_文档 发布时间: 20251010
...: {"name": "render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结...
来源: Laya2.0_文档 发布时间: 20210715
...ypeError: this.preinitialize is not a function !1,i.__super.call(this),this._layout=B.EMPTY,this.preinitialize(),this.createChildren(),this.initial TypeError: this.preinitialize is not a function at i (http://stand.alone.version/...
来源: Laya_社区 发布时间: 20171218
...例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } ``` > 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), ###### 添加物理脚本 只有为节点添加...
来源: Laya2.0_文档 发布时间: 20210715
...continue; if(arr2[i].indexOf("class ") !=-1) continue; if(arr2[i].indexOf("super(") !=-1) continue; if(arr2[i].indexOf("public constructor") !=-1) continue; if(arr2[i].indexOf("else") !=-1) continue; if(arr2[i].indexOf("else if") !=-1) continue; if(arr2[i].indexOf("//") !=-1) continue; if(arr2[i].in...
来源: Laya_社区 发布时间: 20190613
...例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), 添加物理脚本 只有为节点添加了我们自...
来源: Laya3.0_文档 发布时间: 20251010
...d targetDistance: number; //protected camera: Laya.Camera; constructor() { super(); } public transform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this....
来源: Laya_社区 发布时间: 20170714
...t { @property({ type: Laya.Sprite3D }) sp3: Laya.Sprite3D; constructor() { super(); } onEnable() { console.log("Game onStart", this.sp3.name); } } 除非有特别的需求,我们并不建议这样做,一方面是因为静态物体更有利于IDE内进行编辑。另一方面是因为场景编辑...
来源: Laya3.0_文档 发布时间: 20251010