大约有 492 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
... @property( { type : String } ) public text: string = ""; constructor() { super(); } } 5、Runtime的使用差异 3.0的场景与2.0完全不是一个概念, 3.0的runtime只能在场景上的2D根节点Scene2D或预制体的根节点上设置,其它的子级节点,不再支持runtime,如果...
来源: Laya3.0_文档 发布时间: 20251010
...; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() =&g...
来源: Laya3.0_文档 发布时间: 20251010
...Sprite extends Laya.Sprite { constructor() { super(...arguments); this.relativeX = 0; this.relativeY = 0; this.isAloneObject = false; this.isHaveAnimation = false; this.drawImageNu...
来源: Laya_社区 发布时间: 20220627
...export class MyDialog extends MyDialogUI { constructor() { super(); } onOpened(param: any): void { console.log("mylog------:" + JSON.stringify("onOpened")); this.openDataView.postMsg("test10086"); } } 此时 主域已经准备完毕。两个项目...
来源: Laya_社区 发布时间: 20190307
...富文本类型) */ export class Label extends Laya.Text { constructor() { super(); } private typeList = {}; //取出文本里面的关键字 private typeIndexList = ; //关键字所在文本的位置 private typeLines = ; //利用关键字重新划分文本 private underLineWidth = 0; //下划线...
来源: Laya_社区 发布时间: 20180417
...以确保控件已经创建完毕的。)[i]protected initialize(): void { super.initialize(); this._txUserName["fontStyle"] = "default_1"; // let tf: TextFormat = new TextFormat(); // tf.color = "#ffff00"; // tf.fontSize = 30; // tf.stroke = 2; // tf.strokeColor = "#000000"; // this._txUserName["fon...
来源: Laya_社区 发布时间: 20171226
...; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() =&g...
来源: Laya3.0_文档 发布时间: 20251010
... = layerindex; this.playStateInfo.playState = playstate; } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(normalizeTime: number...
来源: Laya3.0_文档 发布时间: 20251010
...3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChi...
来源: Laya3.0_文档 发布时间: 20241014
...3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChi...
来源: Laya3.0_文档 发布时间: 20251105