大约有 520 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0043 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...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
...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
...页: 代码: 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
...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
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
... 赞同来自: 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
...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
...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
...开加载速度过慢,有黑屏,如何加入闪屏图片 Animation 的createFrames 使用已经加载的图集缓存动画失败 问题状态 最新活动: 2019-05-15 11:43 浏览: 677 关注: 2 人 小哥哥 • 2019-05-15 11:48 就是照那上写的啊 u3d5.6.6 插件也是下的1.x bpmf_d •...
来源: Laya_社区 发布时间: 20190515
...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