大约有 230 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)
...栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyBootPage2UI); UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot.super(this); this.Boot.selectHa...
来源: Laya_社区 发布时间: 20160722
...ish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() funct...
来源: Laya_社区 发布时间: 20180315
Animation提示未定义 function FarmIndexView() { FarmIndexView.super(this); this.aniCloud = new Animation(); this.aniCloud.loadAnimation("AniCloud.ani"); Laya.stage.addChild(this.aniCloud); }报错 Uncaught ReferenceError: Animation is not defined 2017-10-26 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20171026
...清除? 2、我把下面的对象添加到stage中 var SightBead = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#f...
来源: Laya_社区 发布时间: 20171012
...nds Sprite { private var urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat....
来源: Laya_社区 发布时间: 20151228
...果可以通过manager.closeEffect修改 public var popupEffect:Function = function(dialog:Sprite):void { dialog.scale(1, 1); Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Hand...
来源: Laya_社区 发布时间: 20180620
...t; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); t...
来源: Laya_社区 发布时间: 20161124
...this.worker = new Worker(WorkerLoader.workerPath); this.worker.onmessage = function(evt:any):void { //接收worker传过来的数据函数 (this as any as WorkerLoader).workerMessage(evt.data); } } 回调函数this指向有问题 附件 : --> 2019-08-02 添加评论 免费帖 --> 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20190802
laya加载unity插件导出的场景 physics3D is not a function unity 导出的场景 放入LayaAir5.1里面加载 有 physics3D 引用。 但是一直报 laya.d3.js:14694 Uncaught TypeError: physics3D is not a function at Function.Laya3D.init (laya.d3.js:14694) at new GameUI (GameUI.ts:34) at Sce...
来源: Laya_社区 发布时间: 20181227
...个版本修复, chaincollider的 方法 override protected function getDef():* { if (!_shape) { _shape = new window.box2d.b2ChainShape(); _setShape(false); } ...
来源: Laya_社区 发布时间: 20181116