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

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

131. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 60%]

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

132. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 60%]

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

133. Animation提示未定义 [ 60%]

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

134. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 60%]

...清除? 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

135. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 59%]

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

136. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 59%]

...果可以通过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

137. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 59%]

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

138. workerLoader问题 [ 59%]

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

139. laya加载unity插件导出的场景 physics3D is not a function [ 59%]

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

140. 一个场景中加两个线形碰撞体出错 [ 59%]

...个版本修复,    chaincollider的  方法    override protected function getDef():* {             if (!_shape) {                 _shape = new window.box2d.b2ChainShape();                 _setShape(false);             }        ...

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