大约有 198 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)
...场景 uiList放所有加载进来的场景 第一步实现 打开界面 openWindow public openWindow(clazz: any, param?: { data?: any }) { let view = new clazz() this.setView(clazz, view); this.mainContent.addChild(view); } 初始化传进来的场景类; 存进字典 添加到显示层 下...
来源: Laya_社区 发布时间: 20190222
... private initSocket(): void { this.on(Laya.Event.OPEN, this, this.onConected); this.on(Laya.Event.ERROR, this, this.onError); } public conectToServer(): void { //“连接”按钮的回调 if (this.connected) retu...
来源: Laya_社区 发布时间: 20170602
...物件的active设false吗?但播放另外一个动画(0:box_Idel,1:box_Open)都不会有问题。 mobile3Dbin • 2018-07-25 15:27 我将active = true直接接在后面,而不是计时器里面了仍然有问题。 Laya_Aaron • 2018-07-25 15:29 @mobile3Dbin:这个不是计时器的问题,...
来源: Laya_社区 发布时间: 20180725
...理的流程。 任意对话框打开和关闭,都会触发管理类的open和close事件Dialog mask : Sprite 遮罩,可以设置一个对象(支持位图和矢量图),根据对象形状进行遮罩显示。 【注意】遮罩对象坐标系是相对遮罩对象本身的,和Flash机制不...
来源: Laya2.0_api 发布时间: 20190513
.../请求加载过程中触发的6个事件 urlLoader.addEventListener(Event.OPEN,openHandler); urlLoader.addEventListener(ProgressEvent.PROGRESS,progressEventHandler); urlLoader.addEventListener("complete",completeHandler); urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorHan...
来源: Laya_社区 发布时间: 20151217
... -framework AVFoundation -weak_framework UIKit -framework GLKit -framework OpenGLES -framework OpenAL -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/wxh/Library/Developer/Xcode/DerivedData/ykmj-hkcpwhnxmcoyygagguzfcmsdrryg/Build/Intermediates.noindex/ykmj.build/Debug-iphoneos/ykmj...
来源: Laya_社区 发布时间: 20180322
...tmapFont.fnt", Laya.Loader.FONT).then((res) => { Laya.Scene.open(Laya.PlayerConfig.startupScene); //可以设置场景路径 }) } 场景中加载字体代码: onAwake(): void { let fnt = Laya.loader.getRes("resources/BitmapFont.fnt", Laya.Loader.FONT); ...
来源: Laya_社区 发布时间: 20250910
...cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, this._arrLabel[index], Laya.Event.FOCUS]); element.on(Laya.E...
来源: Laya_社区 发布时间: 20200410
...原因,请官方及时修正下。 Laya_Aaron • 2018-12-17 10:56 Scene.open() 这个么管理 匿名用户 • 2018-12-27 14:32 Laya.scene.close() ...destroy().. 一样的要报错哎, 还是 楼主的 DEBUG=FALSE 好用
来源: Laya_社区 发布时间: 20181213
...ller on onAfterDeserialize onAwake onClosed onDestroy onDisable onEnable onOpened once open parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anc...
来源: Laya3.0_api 发布时间: 20231115