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

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

1. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 100%]

Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent PhysicsCollider这个组件我只添加了一次,当我按住键盘在点击鼠标的时候,就会有这个错误。说我组件重复添加。我不知道,是你们有默认的键盘事件影响的,还是什么问...

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

2. _calculateCacheRect函数有bug [ 94%]

...pRect;                 tRec.width = tRec.width + CacheStyle.CANVAS_EXTEND_EDGE * 2;                 tRec.height = tRec.height + CacheStyle.CANVAS_EXTEND_EDGE * 2;                 tRec.x = tRec.x - sprite.pivotX;                 tRec.y = tRec.y - sprite.pivotY;     ...

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

3. @regClass编译报错! [ 93%]

...return result;   };    // src/MachineCtrl.ts   var MachineCtrl = class extends CtrlBase {     constructor() {       super();     }   };   __name(MachineCtrl, "MachineCtrl");    // src/funcccccc.ts   var funzzzzz = class {     constructor() {     }     static run(callBack, calle...

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

4. js继承模式 [ 88%]

...type.init = function() { console.log(this); }; return Class; })(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProperty(p)) && (d[p] = b[p]); } function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.pro...

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

5. ts继承后,代码压缩的问题 [ 86%]

...uglify-js对代码进行压缩有,会有很多重复的一下语句 var __extends = this && this.__extends || function() { var extendStatics = Object.setPrototypeOf || { __proto__: [] }instanceof Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (b.h...

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

6. 绘制图形的BUG [ 84%]

... { import laya.display.Sprite; import laya.utils.Tween; public class MyBox extends Sprite { private var _shape:Sprite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正...

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

7. 分包后, 资源加载问题 [ 84%]

...e.log("kk22") var View=laya.ui.View; console.log("kk3") //class loading100 extends laya.display.Sprite var loading100=(function(_super){ console.log("kk4") function loading100(){ loading100.__super.call(this); this.load=new loadingUI(); this.addChild(this.load); } console.log("kk5") __class(loading1...

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

8. 鼠标穿透问题 [ 84%]

...ort laya.utils.Handler; import laya.webgl.WebGL; public class Bootstrapper extends Sprite { protected var _list:List; protected var _items:Array; protected var _loadingBg:Sprite; public function Bootstrapper() { Laya.init(696, 1118, WebGL); Laya.stage.bgColor = "#232628"; Laya.stage.scaleMode = Stag...

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

9. 升级引擎到1.7.19.1beta List报错问题 [ 83%]

... Calvin 赞同来自: 可以证实的,有如下场景: class PageList extends laya.ui.List {        constructor()      {           super();       }        protected initialize():void        {              super.initialize();              this.itemRender = Pa...

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

10. TS版本编译后JS在HTML中顺序错乱,有最简DEMO! [ 82%]

...个类,内部没有任何实现,继承关系分别为如下: class V extends Laya.Sprite {} class W extends V {} class L extends W {} 编译后的index.html中,引入顺序错误,如下:     <!--jsfile--startTag-->     <script src="js/W.js"></script>     &lt...

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