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

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

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

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

232. 微信小游戏开放域(JavaScript-小游戏适配文档-微信小游戏) [ 63%]

...图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDat...

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

233. 按钮交互实现 [ 63%]

...载完毕这个图片集 Laya.loader.create("res/atlas/simbols.atlas",Laya.Handler.create(this,function(){ //创作你的代码 }); 2018-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...

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

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

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

235. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 63%]

...rt ScrollBar = Laya.ScrollBar; import VScrollBar = Laya.VScrollBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ScrollBar { /***水平滚动条资源**/ private skins:Array=["res/ui/hscroll.png", "res/ui/hscroll$bar.png", "res/ui/hscroll$down.png", "res/ui/hscroll$up.pn...

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

236. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 63%]

...rt ScrollBar = Laya.ScrollBar; import VScrollBar = Laya.VScrollBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ScrollBar { /***垂直滚动条资源**/ private skins:Array=["res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.pn...

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

237. laya3D导入动画材质在安卓手机电脑上显示正常,在苹果手机显示异常 [ 63%]

...ck/Conventional/puzzleB.lh" ]; Laya.loader.create(this.resource, Laya.Handler.create(this, this.onLoadFinish)); } private onLoadFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化...

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

238. 用二的幂次方图集非二的幂次方图集区别在哪? [ 63%]

...何获取图集下的小图资源? 图集的质量可以控制吗 Laya.Handler.createnew Laya.Handler有啥区别 我这样载入场景问题出现在哪呢?? spine动画播放后图集错乱 graphics矢量图svg矢量图有什么区别吗 问题状态 最新活动: 2017-09-04 17:31 浏...

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

239. HScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 63%]

...Bar; var ScrollBar = Laya.ScrollBar; var VScrollBar = Laya.VScrollBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; /***水平滚动条资源**/ this.skins = ["res/ui/hscroll.png", "res/ui/hscroll$bar.png", "res/ui/hscroll$down.png", "res/ui/hscroll$up.png"]; Laya.init(800, 600, WebGL); //画...

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

240. 怎么获取手机相册内容 [ 63%]

...prite; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public ...

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