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

大约有 823 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)

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

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

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

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

293. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 67%]

...er.IMAGE}, {url:"res/Public@sl4615.mp3",type:laya.net.Loader.SOUND} ],Laya.Handler.create(this,onLoaded));  /*登录界面*/ var resArray=[ {url:"res/LoginView.fui",type:laya.net.Loader.BUFFER}, {url:"res/LoginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function o...

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

294. 关于bin目录和 web目录的区别 [ 67%]

...? Native2.0正式版wss连接不成功web版本没问题,有DEMO Laya.Handler.createnew Laya.Handler有啥区别 bin目录要加入版本管理吗 atlas目录下.json文件与.atlas的区别 大于4M时,放到layaNativeDir这个目录 --- 这个具体怎么操作 view和Dialog区别 关于...

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

295. 预设对象池回收后再创建报错 [ 67%]

...先声明一个预设变量{Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete));}private function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变...

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

296. 3D模型无法用Tween类吗 [ 67%]

...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_社区 发布时间: 20180112

297. UI中的Tree组件 [ 67%]

...方例子下载? 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2018-03-22 19:40 浏览: 998 关注: 2 人

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

298. destroyChildren 销毁对象后为什么依旧能取得内部属性 removeChildren destroyChildren的区别 [ 67%]

...其克隆对象,统计面板的显存和内存就会显示成负数 Laya.Handler.createnew Laya.Handler有啥区别 1.7.20beta有bug,帧属性面板打不开 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎...

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

299. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 67%]

...aya.loader.load([{ url: "res/ui/LoadProgress.fui", type: Loader.BUFFER }], Handler.create(this, this.loadProgress)) this.token = token; } public loadProgress() { this.progressUI = UIBase.create(LoadProgress.UI_LoadProgress, "LoadProgress", LoadProgress.LoadProgressBinder.bindAll) this.progressUI.UIM...

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

300. 分享:TiledMap设置viewport后黑屏问题! [ 67%]

...; import laya.map.TiledMap; import laya.maths.Rectangle; import laya.utils.Handler; public class LayaAirDemo { private var tiledMap:TiledMap; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = St...

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