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

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

541. 有没有懂tiledmap地图的朋友帮忙看看问什么地图加载不出来 [ 62%]

...ap; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(1500, 900); //加载引擎需要的资源 var map1:TiledMap = new TiledMap(); map1.createMap("aa.json",ne...

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

542. 分享:IDE使用SWF动画的销毁与反复创建 [ 62%]

...laya.events.Event;     import laya.net.Loader;     import laya.utils.Handler;     import view.TestView;          public class LayaUISample {                  public function LayaUISample() {             //初始化引擎             Laya.init(600, 400); ...

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

543. 3D模型旋转定位问题 [ 62%]

...是使用Laya.loader.create("model/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, ...

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

544. putimagedata 不起作用 [ 62%]

... = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.A...

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

545. 微信小游戏调试时发现,某些机器上会出现切换场景后屏幕不刷新 [ 62%]

...人 177*****610 • 2019-02-28 10:22 是的,Laya.loader.load(resURL,Laya.Handler.create(this,this.afterLoadAllRes)); resURL 里经常有多个资源,都加载完了再调用的afterLoadAllRes干别的事情,为的是一些界面的绘制能够完整 王亚飞 • 2019-09-05 13:29 :楼主解决...

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

546. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 62%]

...口文件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();          dialog.btn_question_dialog_next.on(Laya.Eve...

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

547. 加载图片显示为黑屏(附代码),为什么? [ 62%]

...GL; import laya.display.Sprite; import laya.ui.Panel; import laya.utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.si...

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

548. Laya.Tween怎么运用到3D对象上? [ 62%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

549. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 62%]

...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } new WatchPosition(); ``` ​ 由...

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

550. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 61%]

...import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser....

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