大约有 959 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
Laya_社区(662) Laya2.0_文档(158) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(27) Laya3.0_api(20) laya_api(3) Laya2.0_api(2)
...source/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:11) at LoaderManager.__proto.create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13088:10) at Loader.Laya3D._onMaterilLmatLoaded (file:...
来源: Laya_社区 发布时间: 20180328
...前面。 该bug尝试了2.0,依旧存在。 该bug尝试了cocoscreator引擎,cocoscreator不会发生这个bug。 附上测试的代码(javascript):var WebGL = laya.webgl.WebGL; Laya.init(1920, 1080, WebGL); function _OnMapCreate() { console.log("map create ..."); } var viewRect...
来源: Laya_社区 发布时间: 20190102
...n的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 var tab:Tab=new Tab(); Laya.stage.addChild(tab); for(var i:int=0;i<6;i++)//为tab容器添加button { var btn:Button=new Button(); btn.skin="bu...
来源: Laya_社区 发布时间: 20170626
...PS的一些问题咨询! 想将以前的页游项目转成h5 Laya.loader.create 进度回调函数执行两次 drawTexture 画出来的数据会有以前的数据 问题状态 最新活动: 2017-07-18 10:10 浏览: 706 关注: 2 人
来源: Laya_社区 发布时间: 20170717
...需要用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya.stage.addChild(ani);//显示...
来源: Laya_社区 发布时间: 20170522
...ox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScen...
来源: Laya_社区 发布时间: 20180307
...用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 zip更新模式缓存是怎么读取的?? layabox里面怎么读取解压zip压缩包? 资源读取有没有快捷一点的方式,现在的load要手打url,能不能像egret...
来源: Laya_社区 发布时间: 20171212
...理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` (图1)
来源: Laya2.0_文档 发布时间: 20210714
...理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture){ //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...ne_6/Conventional/Assets/New Folder/qiu2_NegativeX.png", Laya.Handler.create(null, (tex) => { var _textureCube = new Laya.TextureCube(); var img:Laya.Image = new Laya.Image(); img.texture=tex; _textureCube.setSixSideImageSources([ img, img, img, img, img, img ]); var skyM = new Laya.SkyBoxMa...
来源: Laya_社区 发布时间: 20190731