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

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

1081. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 43%]

...        Laya.loader.load(this.skPath.replace(".atlas",".png"),Laya.Handler.create(this,function(bit){                 var arr = Laya.Loader.getAtlas(this.skPath);                 arr.forEach(resUrl=>{                     var tex = Laya.Loade...

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

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

...d { //加载引擎需要的资源 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 = new TestView(); //Laya.stage.addChild...

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

1083. 请大家帮助优化一下这个抛物线的代码 [ 43%]

...a.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stag...

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

1084. laya.ui.ColorPicker_API3.0 [ 43%]

...orPicker 实例。 package { import laya.ui.ColorPicker; import laya.utils.Handler; public class ColorPicker_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/...

来源: Laya3.0_api 发布时间: 20231115

1085. laya.ui.Radio_API3.0 [ 43%]

...rarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffs...

来源: Laya3.0_api 发布时间: 20231115

1086. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 43%]

...如下: ```typescript //3d场景加载 Laya.Scene3D.load("xx/xx.ls",Laya.Handler.create(null,function(scene){ //加载完成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省...

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

1087. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...is.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHa...

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

1088. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 42%]

...) at Loader.Laya3D._onTextureCubeLtcLoaded (libs/laya.d3.js:14656) at EventHandler.__proto.runWith (libs/laya.core.js:1400) at Loader.__proto.event (libs/laya.core.js:1156) at Loader.__proto.complete (libs/laya.core.js:16348) at Loader.__proto.onLoaded (libs/laya.core.js:16316) at EventHandler.__pro...

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

1089. laya.ui.ComboBox_API3.0 [ 42%]

... ComboBox 实例。 package { import laya.ui.ComboBox; import laya.utils.Handler; public class ComboBox_Example { public function ComboBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/butto...

来源: Laya3.0_api 发布时间: 20231115

1090. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 42%]

...F/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建相机         let ca...

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