![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LayaAir学习之旅
U3D转Laya学习经验积累
miss1232
这个作者很懒,什么都没留下…
展开
-
LayaAir-项目主要目录文件介绍
项目运行配置文件(.laya文件夹)——存放的是项目在开发运行中的一些配置信息。launch.json文件保存了项目调试的一些配置信息。launch.json文件中的 url 定义了项目调试运行时主页面(index.html)的位置信息。launch.json文件中的chrome调试配置中的runtimeExecutable 保存了chrome 浏览器(chrome.exe)在你电脑中...原创 2019-11-11 10:59:29 · 1005 阅读 · 0 评论 -
TS:indexOf()查找数组
var arr:Array<any>=[2015,"2015","index"];var index:number=arr.indexOf("2015");var sub:number=arr.indexOf(2015);var i:number=arr.indexOf("index-1");console.log(index+" "+sub+" "+i);输出:1 0 ...原创 2019-11-07 16:37:21 · 6018 阅读 · 0 评论 -
学习Laya的文章~出自前辈 无意中发现
https://www.jianshu.com/p/b469efc3b020转载 2019-11-05 19:57:36 · 126 阅读 · 0 评论 -
Laya组件公开的参数变量书写的格式
/** 对于U3D只需要 Public 即可公开外部变量 而Laya要按照格式写 感觉有点麻烦/export default class GameMgr extends Laya.Script { constructor() { super(); /** @prop {name:intType, tips:"整数类型示例", type:Int, d...原创 2019-11-05 19:33:23 · 929 阅读 · 0 评论 -
LayaAir如何加载一个prefab
做个prefab之后 bin目录下回生成对应的一个json文件 直接load就行 创建对象池 然后回调函数里面的pref参数就是我加载的bg_ ,创建一个prefab对象 赋值json信息, 然后从对象池取出来这个对象并实例化, 最后把这个bg_对象添加到节点下创建一个view对象...原创 2019-11-05 13:58:40 · 3498 阅读 · 0 评论