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

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

671. laya.webgl.js调用_repaintSprite(),方法内部this.sprite为null [ 64%]

...yaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 调用原生js 改造原生调用 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内...

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

672. 抖音小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...

来源: Laya3.0_文档 发布时间: 20251010

673. layaairfiles.txt问题 [ 64%]

...tlas是放在cdn的,游戏开始的时候会去拉,就是调用的Laya.loader.loadload的,这样load下来的会自动缓存在本地吗? Laya_Aaron • 2018-07-19 20:51 @小伦:拉下来会存 小伦 • 2018-07-19 23:45 那理论上clearRes的时候不会报我上面那个错把 是我...

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

674. Animation的createFrames为何加载不了有的图集资源 [ 64%]

...rt laya.ani.AnimationState; import laya.display.Animation; import laya.net.Loader; import laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wuda...

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

675. 富文本使用图集 [ 64%]

... [error] Undefined class: ani 这是我哪里用的不对吗?   Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS);  public function createAnimation():void         {             var appendHtml:HTMLDivElement=new HTMLDivElement();       ...

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

676. [LayaAir3]LayaAir 3.3.0-beta.4目前出现的小概率问题反馈 [ 64%]

...出现大小写的问题.比如本地的场景为LoadingView.ls,通过Laya.loader.load加载Loadngview.ls,本地能正常打开.打包后md5版本管理匹配版本号匹配不上.(PS 没有进行测试,只是遇到了) 3,调试代码的时候出现过,代码修改后保存,然后刷新浏览器,浏...

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

677. LayaAir IDE 语言包的使用? [ 64%]

...age { import laya.display.Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("l...

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

678. 加载UI为什么总是加载白底 [ 64%]

...; //设置stage颜色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function st...

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

679. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 64%]

...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...

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

680. 微信加载文件失败没有回调 [ 64%]

...的版本版本管理(会重命名文件名称的)   例子代码: LoadError(){console.log("LoadError")} LoadOK(){console.log("LoadOK")}   Laya.loader.on(Laya.Event.ERROR,this,this.LoadError) Laya.loader.load("不存在的图片URL",Laya.Handler(this,this.LoadOK));     发布成微信小...

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