大约有 1,262 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0050 秒)
Laya3.0_api(409) Laya_社区(375) Laya2.0_api(226) laya_api(168) Laya2.0_文档(49) Laya3.0_文档(25) Laya2.0_示例(7) Laya_示例(3)
...s Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"); } } }监听:Mod.on("aaa",this,onFunciton) 2016-12-19 0 0 分享 微博 QZ...
来源: Laya_社区 发布时间: 20161218
...ta 开发语言 AS 3 将所有静态常量设置到了Constant.aspublic static const DEFAULT_MASK:int = 0x1; public static const HERO_MASK:int = 0x2; 在目标文件里面Hero.as调用setMask(Constant.DEFAULT_MASK, Constant.HERO_MASK); 编译后JS代码会变成,这应该是编译优化中的...
来源: Laya_社区 发布时间: 20171010
...package flash.ui { public class Mouse { public function Mouse() { } public static function hide():void { } public static function show():void { } } } cuixueying • 2017-03-17 19:46 有没有例子,上传一个,我们看下!
来源: Laya_社区 发布时间: 20170317
...Storage类里的Storage 类里的init()方法 (第94行), public static function init():void { __JS__("try{Storage.items=window.localStorage;Storage.setItem('laya', '1');Storage.removeItem('laya');Storage.support = true;} catch(e){}if(!Storage.support)console.log('LocalStorage is not suppr...
来源: Laya_社区 发布时间: 20180703
...ers shader: Shader3D subShader: number shaderData: ShaderData Returns void Static create create(source: BaseTexture, dest: RenderTexture, viewport: Viewport, offsetScale?: Vector4, shader?: Shader3D, shaderData?: ShaderData, subShader?: number): BlitFrameBufferCMD Defined in laya/d3/core/render/comm...
来源: Laya3.0_api 发布时间: 20231115
...ined in laya/device/motion/Accelerator.ts:44 Returns Accelerator Accessors Static instance get instance(): Accelerator Defined in laya/device/motion/Accelerator.ts:37 Returns Accelerator Methods event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/event...
来源: Laya3.0_api 发布时间: 20231115
...eorientation Public Properties PropertyDefined By instance : Gyroscope[static] [read-only] GyroscopePublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Gyroscope(singleton:int)Gyroscope event(type:String, data:* = null):Boolean 派发事件。 EventDi...
来源: laya_api 发布时间: 20170929
...number Defined in laya/display/cmd/DrawTrianglesCmd.ts:26 Y轴偏移量。 Static ID ID: string = "DrawTriangles" Defined in laya/display/cmd/DrawTrianglesCmd.ts:13 Methods getBoundPoints getBoundPoints(sp?: { height?: number; width: number }): number[] Defined in laya/display/cmd/DrawTrianglesCmd.t...
来源: Laya3.0_api 发布时间: 20231115
....ts:188 检查状态是否触发 Parameters value: boolean Returns boolean Static conditionIDToName conditionIDToName(id: number): string Inherited from AnimatorStateCondition.conditionIDToName Defined in laya/components/AnimatorStateCondition.ts:35 通过ID获得唯一名称。 Parameters id: numbe...
来源: Laya3.0_api 发布时间: 20231115
...ource.uuid Defined in laya/resource/Resource.ts:109 获取资源的UUID。 Static ALPHATESTVALUE ALPHATESTVALUE: number Inherited from Material.ALPHATESTVALUE Defined in laya/d3/core/material/Material.ts:51 着色器变量,透明测试值。 Static DEBUG DEBUG: boolean = false Inherited from Resourc...
来源: Laya3.0_api 发布时间: 20231115