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

大约有 1,758 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)

321. laya.components.AnimatorController2D_API3.0 [ 67%]

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

322. Laya下的图片上传示例(完整版) [ 67%]

...var fileReader:any = new Laya.Browser.window.FileReader(); file.onchange = function(e:any):void { if(file.files.length>0) { if(20*1024<file.files[0].size) { console.log("图片大小不能超过20kb!") }else{ fileReader.readAsDataURL(file.files[0]); //转换图片格式为字符编码 } } }; f...

来源: Laya_社区 发布时间: 20190129

323. ReferenceError: Laya3D is not defined? [ 67%]

...ne3D.load("LayaScene_Main/Conventional/Main.ls", Laya.Handler.create(null, function(scene:Laya.Scene3D):void { Laya.stage.addChild(scene) as Laya.Scene3D; var camera:Laya.Camera = scene.getChildByName("Main Camera") as Laya.Camera; //camera.addComponent(CameraMoveScript); })); 2019-03-08 添加评...

来源: Laya_社区 发布时间: 20190308

324. 销毁有声音的spine动画,skeleton中的_onAniSoundStoped有时会报undefined错误 [ 67%]

...删掉所有的声音channel     */     __proto._onAniSoundStoped=function(force){         var _channel;         for (var len=this._soundChannelArr.length,i=0;i < len;i++){             _channel=this._soundChannelArr;             if (_channel.isStopp...

来源: Laya_社区 发布时间: 20190827

325. Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object [ 67%]

...歌chrom96版本滤镜报错 导微信小程序报错window.focus is not a function laya2 发布微信开放域工程,用微信开发者工具打开报错 Laya使用fairygui的富文本xml解析报错 小游戏项目 加载有中文的json文件 报错 问题状态 最新活动: 2023-07-06 16:44 ...

来源: Laya_社区 发布时间: 20230703

326. LayaNative端使用.ttf字体 [ 67%]

... laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu....

来源: Laya_社区 发布时间: 20161219

327. laya.resource.AtlasResource_API3.0 [ 67%]

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

328. worker的问题 [ 67%]

... use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微博 QZONE 微信 fool_tiger 赞同来自: 可以调...

来源: Laya_社区 发布时间: 20180108

329. 微信小游戏的位图字体加载报错! [ 67%]

...晰的解决方法! gameThirdScriptError t.getElementsByTagName is not a function TypeError: t.getElementsByTagName is not a function     at t.e.parseFont (http://127.0.0.1:63921/game/code.js:1:12413)     at e.s.onLoaded (http://127.0.0.1:63921/game/code.js:1:176642)     at e.u (http://127.0...

来源: Laya_社区 发布时间: 20180530

330. js项目使用缓动类Tween报错 [ 67%]

...使用缓动类Tween报错 代码如下 var Tww = laya.utils.Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添...

来源: Laya_社区 发布时间: 20180524