大约有 3,269 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0080 秒)
...erAt(0)._passes[0].withCompile(comDef); ... } Laya.ShaderPass -> withCompile(compileDefine) { if (Shader3D.debugMode)//开启debug编译shader时生成打印shader参数 this._addDebugShaderVariantCollection(compileDefine); } debugShader...
来源: Laya_社区 发布时间: 20200606
...同来自: /** * 存储指定键名及其对应的 <code>Object</code> 类型值。 * @param key 键名。 * @param value 键值。是 <code>Object</code> 类型,此致会被转化为 JSON 字符串存储。 */ ...
来源: Laya_社区 发布时间: 20180426
...引用顺序<script type="text/javascript" src="libs/pomelo/index.js"></script> <script type="text/javascript" src="libs/pomelo/protocol.js"></script> <script type="text/javascript" src="libs/pomelo/protobuf.js"></script> <script type="text/javascript" src="lib...
来源: Laya_社区 发布时间: 20180109
...States Methods load load(task: ILoadTask): Promise<AnimatorController2D> Implementation of IResourceLoader.load Defined in laya/loaders/AnimationController2DLoader.ts:7 Parameters task: ILoadTask Returns Promise<AnimatorController2D> loadStates loadStates(states: TypeAnimatorState[], pro...
来源: Laya3.0_api 发布时间: 20231115
...,求解 角色碰撞器添加复合型碰撞形状,报错Qt[a[((a[(t >> 2)] + 8) >> 2)]] is not a function 官方视频教程中飞机大战 "this.addChild is not a function" at api readFile fail callback function 打地鼠发布成微信小游戏后提示gameThirdScriptError this.pr...
来源: Laya_社区 发布时间: 20201218
...有飞机,更改飞机状态 for(var i = Laya.stage.numChildren - 1; i > 0; i--) { // 接收舞台子对象 var role = Laya.stage.getChildAt(i); // 判断是否有飞机,并且是否有速度值 if(role && role.speed){ // 根据飞机速度更改飞机的位置 role.y += role.speed; /...
来源: Laya_社区 发布时间: 20170525
... 里引入,如下所示 <script type="text/javascript" src="astar.js"></script> 2.2 A*代码中使用 添加好A*类库之后,我们来看看代码中是怎么使用的 先来看一个最基本的A*代码示例 var graph = new Graph([ [1,1,1,1], [0,1,1,0], [0,0,1,1] ]); var start = g...
来源: Laya3.0_文档 发布时间: 20230303
...(); appendHtml.innerHTML="aa==<ani src='res/1.png'></ani>"; Laya.stage.addChild(appendHtml); } 2018-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20180309
...") //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya.Scene.open("scenes/UiMain.ls"); }); //侦听物理按钮点击事件 this.phyBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开物理游戏示例...
来源: Laya3.0_文档 发布时间: 20251010
...免laya把src里的其他文件写进来//删掉 <!--jsfile--startTag--> <!--jsfile--endTag-->在index.html里初始化Laya,因为main.js的引用文件会优先执行,所以Laya.init不能写在main.js里面 type="module"是chrome61的新功能,可以使用es6的import来加载模...
来源: Laya_社区 发布时间: 20171120