大约有 13 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0072 秒)
...Scene = scene Laya.Scene.setLoadingPage(scene) } /** * 打开场景 * otherHandler 执行时间小于 loadScene 使用此方法 * otherHandler 不会阻塞 loadScene * @param {String} url 要打开的场景 * @param {Promise} otherHandler 同时执行的其它事件 * @param {Boolean} closeOther 关...
来源: Laya_社区 发布时间: 20181124
...open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创...
来源: Laya3.0_文档 发布时间: 20251010
...ers node: Node Returns boolean loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from Text.loadImage Defined in laya/display/Sprite.ts:1578 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片...
来源: Laya3.0_api 发布时间: 20231115
...ers node: Node Returns boolean loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from Text.loadImage Defined in laya/display/Sprite.ts:1578 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片...
来源: Laya3.0_api 发布时间: 20231115
...一个 Dialog 实例。 package { import laya.ui.Dialog; import laya.utils.Handler; public class Dialog_Example { private var dialog:Dialog_Instance; public function Dialog_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的...
来源: Laya3.0_api 发布时间: 20231115
...向中心线的距离(以像素为单位)。 View clickCallBack : Handler图标点击回调MoreGame closeCallBack : Handler关闭盒子回调MoreGame customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函数...
来源: Laya2.0_api 发布时间: 20190513
...类型是否是鼠标事件。 EventDispatcher load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture...
来源: Laya2.0_api 发布时间: 20190513
...方向中心线的距离(以像素为单位)。 View closeEffect : Handler 关闭对话框效果,可以设置一个效果代替默认的关闭效果,如果不想有任何效果,可以赋值为null 全局默认关闭效果可以通过manager.closeEffect修改 Dialog closeHandler : Han...
来源: Laya2.0_api 发布时间: 20190513
...roperties _extra _ownGraphics _scene _skinBaseUrl _url autoSize closeEffectHandler hitTestPrior lockLayer maskLayer mouseThrough name popupEffectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable...
来源: Laya3.0_api 发布时间: 20231115
...orPicker 实例。 package { import laya.ui.ColorPicker; import laya.utils.Handler; public class ColorPicker_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/...
来源: Laya3.0_api 发布时间: 20231115