• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,262 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0050 秒)

651. 在Test中有个按钮点击,那么我如何发信号,使得这个点击能给控制Sample中的对象,如何调用函数 [ 67%]

...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

652. AS 静态常量编译的BUG,不会更新目标文件 [ 67%]

...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

653. 主类引用了laya.utils.Mouse这个类,报错:所访问的属性 Mouse 可能未定义 [ 67%]

...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

654. LocalStorage的bug [ 67%]

...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

655. laya.d3.core.render.command.BlitFrameBufferCMD_API3.0 [ 67%]

...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

656. laya.device.motion.Accelerator_API3.0 [ 67%]

...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

657. laya.device.motion.Gyroscope [ 67%]

...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

658. laya.display.cmd.DrawTrianglesCmd_API3.0 [ 67%]

...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

659. laya.components.AnimatorStateBoolCondition_API3.0 [ 67%]

....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

660. laya.d3.core.pixelline.PixelLineMaterial_API3.0 [ 67%]

...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