大约有 4,338 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0107 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(25)
...则值为 true;否则,值为 false。 off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除...
来源: Laya3.0_api 发布时间: 20231115
... 提交 1 个回复 Allen_叶 赞同来自: // 游戏初始 _proto.Init = function(callback){ if(onFaceBook){ FBInstant.initializeAsync().then(function() { this.playerID = FBInstant.player.getID(); if(callback){ callback(); } }); } //资源加载进度 _proto.LoadingProcess = function(percentage)...
来源: Laya_社区 发布时间: 20190114
...局触控即可 var _self = this; document.addEventListener("mousedown",function(event){_self.onActDown(event);},false); document.addEventListener("mouseup",function(event){_self.onActUp(event);},false); document.addEventListener( 'touchstart', function(event){ _self.onActDown(event) }, false ); ...
来源: Laya_社区 发布时间: 20180114
...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231115
....utils.Handler; public class LayaAirDemo { private var image:Image; public function LayaAirDemo() { Laya.init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { image=new Image(); image.skin="logo.png"; Laya.stage.addChild(image); La...
来源: Laya_社区 发布时间: 20170628
...Sprite",Sprite); ClassUtilsMethod DetailcreateByJson()method public static function createByJson(json:*, node:* = null, root:Node = null, customHandler:Handler = null, instanceHandler:Handler = null):* 根据指定的 json 数据创建节点对象。 比如: { "type":"Sprite", "props":{ "x":100, "y"...
来源: Laya2.0_api 发布时间: 20190513
...age=ch&category=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不...
来源: Laya2.0_文档 发布时间: 20210715
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Label = Laya.Label; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.align...
来源: Laya_示例 发布时间: 20241125
... alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode let runtime = json.props.runtime; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at eval (native) at Docum...
来源: Laya_社区 发布时间: 20180724
...否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦...
来源: laya_api 发布时间: 20170929