大约有 1,587 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0070 秒)
Laya_社区(1114) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(52) Laya3.0_api(11) Laya2.0_api(2)
...false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20201021
...Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var uiResArr =[ {url:"res/atlas/comp.atlas",type: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded)); //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byt...
来源: Laya_社区 发布时间: 20180210
3Ddemo加载Unity导出场景报错resou._removeReference is not a function import { ui } from "./../ui/layaMaxUI"; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本...
来源: Laya_社区 发布时间: 20190426
...自: 试了一下排除资源文件,也没有效果哦。附件中排除res/altas这个文件夹了,打出的rpk,仍然有这目录。 myLaya.zip 2019-09-21 0 0 分享 微博 QZONE 微信 kylin 赞同来自: 我检查了demo里的publish.js脚本,里面的内容和我们发布出去的差别...
来源: Laya_社区 发布时间: 20190921
...微信 lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i...
来源: Laya_社区 发布时间: 20170607
...cess to XMLHttpRequest at 'file:///E:/Game-SuperMary/SuperMary/release/web/res/atlas/option.atlas' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. load(url) { v...
来源: Laya_社区 发布时间: 20200107
...04 关注: 2 人 xq15059492071 • 2018-02-08 14:32 Laya.loader.load("res/config/preloadAssets.xml", Handler.create(this, this.onPreloadConfigLoaded), null, "xml"); 就一行代码,比如这样的,就是load不下来了,你们小游戏里可以load xml的吗 qian • 2018-0...
来源: Laya_社区 发布时间: 20180208
...删除了) 情况: 1、从unity3d导出一个资源。 (路径:res/gamedata/3d/tower/tower_111002/tower_111002.lh) 2、加载这个资源 (使用Laya.loader.create,参阅附件工程) 3、使用layadcc (反正也没人回答,附件暂时删除了) 4、发现tower_11...
来源: Laya_社区 发布时间: 20200512
...始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给p...
来源: Laya2.0_文档 发布时间: 20210715
...都一样,就是图集的分辨率不对。附件已经给了,请注意res/atlas/comp.png 这张图的分辨率,比正确的图宽和高都多了像素 lookdczar • 2017-12-31 23:21 另外一个人也和我出现了一样的问题 https://ask.layabox.com/question/10105 lookdczar • 2017-12-3...
来源: Laya_社区 发布时间: 20171230