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

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

21. 如何使用类似AS库打包的方式来分包 [ 87%]

...ork { /*[COMPILER OPTIONS:ForcedCompile]*/ public class Framework { public function Framework() { } } }package cn.ztgames.st.Framework { public class CLassA { public function CLassA() { } } }分包文件内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__...

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

22. 【laya2.0】请问drawToCanvas方法改了吗? [ 86%]

..._work.drawToCanvas(575, 1023, 0, 0); htmlCanvas.toBase64("image/png", 0.9, function(base64){ //trace(base64); if (!testTf){ __JS__('setWork(base64)'); } }); 2018-10-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ohkei as3、as2、h5 ...

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

23. as3字符串截取int的问题 [ 84%]

...自动转成以下JS并报错Uncaught ReferenceError: int is not defined function DConfig(){}; __class(DConfig,'DConfig'); __getset(1,DConfig,'GamrRoomEnterPower',function(){ return DConfig.gamrRoomEnterPower; },function(value){ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPowe...

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

24. 小程序分享问题 [ 84%]

...序 但是分享功能加不进去 网上都说 Page({ onShareAppMessage: function () { } }) 这样就行了 但是我这边提示 Page is not defined ReferenceError: Page is not defined 我要是单独写 onShareAppMessage: function () { } 他就提示 onShareAppMessage is not defined 2018-04-11 ...

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

25. ios打包单机版本问题,显示conchShader找不到和Status bar could not find cached time string image. 然后直接黑屏!!!!!! [ 84%]

....module.shape.SphereShape",e);var n=t.prototype;return n._getShapeBoundBox=function                                                            ReferenceError: ConchShader is not defined                                                         ...

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

26. 原生js如何调用laya里的方法? [ 83%]

...不知道怎么访问与调用,找了好多的方法都没法使用: (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+...

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

27. 加载-错误处理和进度 [ 83%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Loader = Laya.Loader; var Texture = Laya.Texture; var Handler = Laya.Handler; (function() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls = ["do not ...

来源: Laya_示例 发布时间: 20250221

28. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 82%]

...rivate var url_img:String = "res/";                    public function WWJ_Main()          {             Laya.init(stageWidth, stageHeight);                          Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage....

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

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

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

30. 2.2.0 Html使用img标签解析错误 [ 81%]

...用img标签解析错误 TypeError: Illegal constructor preload.js:55 at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.core.js:11687:24)   at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1213:39)   at Function._parseXML (file:///D:/LayaTest/...

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