大约有 403 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0037 秒)
...错 Uncaught Can not find scene:GameView.scene undefined Laya2.1.0 JS调用Java PlatformClass undefined Cannot read property 'displayObject' of null 浏览器运行提示TypeError: xxx is not a function Uncaught unknown animationClip version. Uncaught TypeError: Cannot read property 'props' of undef...
来源: Laya_社区 发布时间: 20210901
...lStorage。下面通过简单的例子来看下它是如何使用的。 ```javascript Laya.init(100,100); Laya.LocalStorage.setItem("key","hello"); Laya.LocalStorage.setItem("data","hello"); var data = {"index":0,"index1":1}; Laya.LocalStorage.setJSON("item",data);//直接传入Object 接口内部...
来源: Laya2.0_文档 发布时间: 20210715
...地加载的`load()`方法之后使用`URL.basePath`方法。 例如: ```java material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL.basePath = "https://XXXX.com";//请把XXXX换成自己的真实网址; //在此之下,再使用load加载...
来源: Laya2.0_文档 发布时间: 20210714
...A/DEBUG: #02 pc 001b2385 /data/app/com.dw.carTest-1/lib/arm/liblayaair.so (Java_layaair_game_browser_ConchJNI_onDrawFrame+48)已提供附件 附件 : --> bin.rar 2018-12-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...
来源: Laya_社区 发布时间: 20181208
...) 下面我们用LayaAir引擎画一条直线,示例代码如下: ```java package { import laya.display.Sprite; import laya.display.Stage; import laya.webgl.WebGL; public class Sprite_DrawShapes { private var sp:Sprite; ...
来源: Laya2.0_文档 发布时间: 20210714
...地加载的`load()`方法之后使用`URL.basePath`方法。 例如: ```java material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL.basePath = "https://XXXX.com";//请把XXXX换成自己的真实网址; //在此之下,再使用load加载...
来源: Laya2.0_文档 发布时间: 20210715
...eError: Cannot read property 'cursor' of undefined错误 Laya2.1.0 JS调用Java PlatformClass undefined Cannot read property 'displayObject' of null 运行报错 Uncaught Can not find scene:GameView.scene undefined Uncaught TypeError: Cannot read property 'props' of undefined XmlDom类没有了?...
来源: Laya_社区 发布时间: 20191129
...tion()`获取当前的位置,`getCurrentPosition()`只触发一次。 ```java // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬...
来源: Laya2.0_文档 发布时间: 20210715
...tion()`获取当前的位置,`getCurrentPosition()`只触发一次。 ```java // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬...
来源: Laya2.0_文档 发布时间: 20210715
...tion()`获取当前的位置,`getCurrentPosition()`只触发一次。 ```java // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬...
来源: Laya2.0_文档 发布时间: 20210714