• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 404 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)

361. Laya.ani 库勾选但报 laya.ani.swf.MovieClip undefined [ 46%]

...错 Uncaught Can not find scene:GameView.scene undefined Laya2.1.0 JS调用Java PlatformClass undefined Cannot read property 'call' of undefined 生成微信小游戏时各种"undefined"(已解决) 关于微信连接无法自动转为wss的问题,window.location.protocol为undefined code.js打包出...

来源: Laya_社区 发布时间: 20201122

362. Uncaught TypeError: Cannot read property 'regClass' of undefined [ 46%]

...错 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

363. Web Storage数据存储(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 46%]

...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

364. 百度小游戏的5M本地包与动态资源加载(TypeScript-小游戏适配文档-百度小游戏) [ 46%]

...地加载的`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

365. laya2.0 beta5 选择native v2.0.3 发布安卓 有大概率闪退 [ 46%]

...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

366. 绘制直线与折线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 45%]

...) 下面我们用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

367. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 45%]

...地加载的`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

368. TypeError: Cannot read property '_addRenderObject' of undefined [ 45%]

...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

369. 用Geolocation获取地理位置信息(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 45%]

...tion()`获取当前的位置,`getCurrentPosition()`只触发一次。 ```java // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬...

来源: Laya2.0_文档 发布时间: 20210715

370. 用Geolocation获取地理位置信息(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 45%]

...tion()`获取当前的位置,`getCurrentPosition()`只触发一次。 ```java // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬...

来源: Laya2.0_文档 发布时间: 20210715