大约有 281 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0042 秒)
...& (Laya.Stat.loopCount > mouseTouch._pressedLoopCount)){ var pressedScripts=pressedSprite._scripts; if (pressedScripts){ for (j=0,m=pressedScripts.length;j < m;j++) pressedScripts[j].onMouseDrag(); } }; var touchSprite=mouseTouch.sprite; if (touchSprite){ var scripts=touchSprite._scripts; ...
来源: Laya_社区 发布时间: 20200119
...Slider: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({type:Laya.VSlider}) public vslider: Laya.VSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vslider.po...
来源: Laya3.0_文档 发布时间: 20251010
...Slider: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HSlider }) public hslider: Laya.HSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hslider...
来源: Laya3.0_文档 发布时间: 20251010
...mboBox: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ComboBox }) public combobox: Laya.ComboBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.comb...
来源: Laya3.0_文档 发布时间: 20251010
...过,通过Url获取具体脚本代码 if (moduleJs) { __JS__("var script = document.createElement('script');") __JS__(" script.type = 'text/javascript';") __JS__(" script.text = moduleJs;") __JS__(" document.body.appendChild(script);") } chunjine • 2017-03...
来源: Laya_社区 发布时间: 20161020
...an: 3.616943359375 ms add main_scene.ls add ui/ui.atlascfg add ../src/BuildScript.ts add ../src/Main.ts add ../src/storage/StorageProxy.ts add ~/internal/blueprint.bin add ~/internal/Box.lm add ~/internal/Capsule.lm add ~/internal/Cone.lm add ~/internal/Cylinder.lm add ~/internal/DefaultMaterial.lma...
来源: Laya_社区 发布时间: 20250102
...ass, property } = Laya; @regClass() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执...
来源: Laya3.0_文档 发布时间: 20251010
...ollBar: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HScrollBar }) public hscroll: Laya.HScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.h...
来源: Laya3.0_文档 发布时间: 20251010
...ollBar: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VScrollBar }) public vscroll: Laya.VScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.v...
来源: Laya3.0_文档 发布时间: 20251010
...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onSta...
来源: Laya3.0_文档 发布时间: 20251010