大约有 106 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
...ructors constructor new Loader(): Loader Defined in laya/net/Loader.ts:176 创建一个新的 Loader 实例。 注意:请使用Laya.loader加载资源,这是一个单例,不要手动实例化此类,否则会导致不可预料的问题。 Returns Loader Properties maxLoader maxLoader: number ...
来源: Laya3.0_api 发布时间: 20231115
...new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创建一个新的 LoaderManager 实例。 注意:请使用Laya.loader加载资源,这是一个单例,不要手动实例化此类,否则会导致不可预料的问题。 Returns LoaderManager Properties maxLoader maxL...
来源: Laya3.0_api 发布时间: 20231102
...: boolean, limitRange?: boolean): void Defined in laya/map/TiledMap.ts:160 创建地图 Parameters mapName: string JSON文件名字 viewRect: Rectangle 视口区域 completeHandler: Handler 地图创建完成的回调函数 Default value viewRectPadding: Rectangle = null 视口扩充区域,把视...
来源: Laya3.0_api 发布时间: 20231115
.../d3/component/Animator/Animator" Animator Class Animator Animator 类用于创建动画组件。 Hierarchy Component Animator Index Constructors constructor Properties _controller _extra _singleton cullingMode owner runInEditor scriptPath CULLINGMODE_ALWAYSANIMATE CULLINGMODE_CULLCOMPLETELY Accessor...
来源: Laya3.0_api 发布时间: 20231115
...态和三态,默认三态(up,over,down)。 example 以下示例代码,创建了一个 Button 实例。 package { import laya.ui.Button; import laya.utils.Handler; public class Button_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor...
来源: Laya3.0_api 发布时间: 20231115
...enu Globals "laya/display/Scene" Scene Class Scene 场景类,负责场景创建,加载,销毁等功能 场景被从节点移除后,并不会被自动垃圾机制回收,如果想回收,请调用destroy接口,可以通过unDestroyedScenes属性查看还未被销毁的场景列表 Hierarc...
来源: Laya3.0_api 发布时间: 20231115
...e赋值时的的默认属性是:selected。 example 以下示例代码,创建了一个 CheckBox 实例。 package { import laya.ui.CheckBox; import laya.utils.Handler; public class CheckBox_Example { public function CheckBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stag...
来源: Laya3.0_api 发布时间: 20231115
...Inherited from Scene.unDestroyedScenes Defined in laya/display/Scene.ts:18 创建后,还未被销毁的场景列表,方便查看还未被销毁的场景列表,方便内存管理,本属性只读,请不要直接修改 Accessors _isHeightSet get _isHeightSet(): boolean Inherited from Text._is...
来源: Laya3.0_api 发布时间: 20231115
...关闭效果,可以设置前述属性为空 example 以下示例代码,创建了一个 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);//设置游...
来源: Laya3.0_api 发布时间: 20231115
...or/AnimatorState" AnimatorState Class AnimatorState AnimatorState 类用于创建动作状态。 Hierarchy EventDispatcher AnimatorState Implements IClone Index Constructors constructor Properties _isLooping clipEnd clipStart curTransition cycleOffset name speed EVENT_OnStateEnter EVENT_OnStateExit ...
来源: Laya3.0_api 发布时间: 20231115