大约有 2,837 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0113 秒)
Laya_社区(1676) Laya3.0_api(668) Laya2.0_文档(133) Laya2.0_api(128) laya_api(122) Laya3.0_文档(83) Laya2.0_示例(16) Laya_示例(11)
... extends Image{ // /** @prop {name:move_img, tips:"用来移动的箭头", type:Image} */ // public _move_img: Image; // public _list: List; //创建一个 List 类的实例对象 list 。 private n:number = 0; private x0:number = 0; private y0:number = 0; constructor(){super();} onEnable():void{ th...
来源: Laya_社区 发布时间: 20200203
...{ url : [ "res/background.png", "res/m_background.png", "res/floor.png" ], type : Laya.Loader.IMAGE }); //加载图集资源 asset.push({ url:"res/player.json", type : Laya.Loader.ATLAS }); //加载图集资源 Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.cre...
来源: Laya_社区 发布时间: 20160801
...小游戏后会报错 代码如下: Laya.loader.load([{url: "lang.xml", type: Loader.XML}]); 错误如下: gameThirdScriptError undefined;at api readFile success callback function undefined 经调试,原因就是加载了xml,去掉该行就不会报错。 同时位图字体也是因为xml解...
来源: Laya_社区 发布时间: 20180103
....init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattack/1.png","res/atlas/monsterbeat...
来源: Laya_社区 发布时间: 20170220
... LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 求高人分享使用protobuff框架的游戏demo(TS版本或AS版本的) 1.7.20...
来源: Laya_社区 发布时间: 20160626
...用mask? 纹理平铺怎么做 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target layabox3.07版本使用纹理压缩色彩很大 谷歌浏览器播放mp3出现The AudioC...
来源: Laya_社区 发布时间: 20240116
...游戏:HTMLDivElement的使用 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏如何使用ttf字体? 关于使用matterjs物理引擎鼠标问题 动画混合无效(版本2.6) 预设怎么在代码中使用 求高人分享使用protobuff框架的...
来源: Laya_社区 发布时间: 20250929
...里设置有问题么 Laya.Media方法调用失败 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 源代码中Handler中的setTo()方法 如何检测Animation动画播放完毕后去执行方法? 節點的destroy方法參數默認為true時是否會遞歸...
来源: Laya_社区 发布时间: 20170704
...在launch.json不同) 我发现有一点差异,下面这行<script type="text/javascript" src="node_modules/requirejs/require.js"></script> ,而vscode里可以注释掉,还是正常。 用VS Code测试: 运行后一切正常: 而layaAir IDE,如果注释掉这一行,...
来源: Laya_社区 发布时间: 20171116
...et input = laya.utils.Browser.createElement("input"); input.type = "file"; input.id = "photo"; body.appendChild(input); Laya.loader.load("comp/button.png"); let button = new UIButton("comp/button.png","点我"); ...
来源: Laya_社区 发布时间: 20161114