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

大约有 4,336 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0085 秒)

621. laya.ani.AnimationPlayer_API3.0 [ 88%]

...则值为 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

622. 关于 接facebook sdk [ 88%]

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

623. laya3d 增加全局触控 [ 88%]

...局触控即可   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

624. laya.resource.TextResource_API3.0 [ 88%]

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

625. 分享:改变图片皮肤,保持图片原样宽高显示 [ 88%]

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

626. laya.utils.ClassUtils [ 88%]

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

627. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 88%]

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

628. UI-Label [ 88%]

...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_示例 发布时间: 20241002

629. 构建好android studio项目后,debug出错 [ 88%]

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

630. laya.net.HttpRequest [ 88%]

...否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦...

来源: laya_api 发布时间: 20170929