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

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

221. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 70%]

...Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使用LayaA...

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

222. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 70%]

...mo() { Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.getRes('res/apes/monkey2.png'); var sp:Sprite=new Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150...

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

223. Animation如何获取图集单帧实际宽高 [ 70%]

...页: 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

224. 其他引擎的Demo-Example_23 [ 70%]

...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); // create a background texture Laya.stage.loadImage("res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, this.animate); } animate() { const Sprite = Laya.Sprite, Point = Laya.Point; let laser; if (tick > frequency) { tick = 0;...

来源: Laya2.0_示例 发布时间: 20251218

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

Animation的createFrames为何加载不了有的图集资源 package { import 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_社区 发布时间: 20170220

226. unity3d导出的刚体模型,加载报错 [ 69%]

... 赞同来自: Uncaught TypeError: Cannot read property 'layaMotionState_create' of undefined     at Rigidbody3D._onAdded (libs/laya.d3.js:4824)     at MeshSprite3D._addComponentInstance (libs/laya.core.js:13911)     at MeshSprite3D.addComponent (libs/laya.core.js:13958)     at Function._cre...

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

227. Android替换游戏启动logo看不到设置的图片 [ 69%]

...ya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") { dd=__JS__("window.loadingView"); dd.loading(10...

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

228. tween缓动时能不能实时得出当前的位置 [ 69%]

...update方法是可以的 Tween.to(_source, {x:endX, y:endY, update:Handler.create(this, tweenUpdate)},200, null, Handler.create(this, moveComplete));   2017-12-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z1071051378 相关问题 ...

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

229. Laya1.7.20如何加载3d资源? [ 69%]

...开加载速度过慢,有黑屏,如何加入闪屏图片 Animation 的createFrames 使用已经加载的图集缓存动画失败 问题状态 最新活动: 2019-05-15 11:43 浏览: 677 关注: 2 人 小哥哥 • 2019-05-15 11:48 就是照那上写的啊 u3d5.6.6 插件也是下的1.x bpmf_d •...

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

230. png使用base64显示异常 [ 69%]

...rse(image); // data._url = "sdfasf" // _this.onLoaded(data); img=HTMLImage.create(image.width,image.height,1); img.loadImageSource(image,true); img._setCreateURL(url); _this.onLoaded(img); }; var url = _this.arrayBufferToBase64(data); image = new Browser.window.Image(); image.crossOrigin = ""; image...

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