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

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

1671. Animation未释放资源的引用 [ 78%]

...资源的引用 先上源码 destroy(destroyChild: boolean = true): void { this.stop(); super.destroy(destroyChild); this._frames = null; this._labels = null; }animation的destory方法,只是将_frames赋值为null,并没有对_frames的graphics进行destroy, 这样会导致动画的图集引...

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

1672. LayaBox加载TiledMap地图和注意事项 [ 78%]

...ne {    constructor() { super();        DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false;        this.loadScene("Desert.scene"); //初始化舞台 Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.T...

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

1673. TiledMap制作横板地图 报错 [ 78%]

...图,但是在试着导入游戏阶段报错。 以下是导入脚本。 this.map=new Laya.TiledMap(); this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var...

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

1674. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 78%]

..."render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结构的项的...

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

1675. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 78%]

...          Laya.init(500, 300, WebGL);             this.drawSomething();         }            private drawSomething(): void {             this.sp = new Sprite();             Laya.stage.addChild(this.sp);             /...

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

1676. laya.utils.Handler [ 78%]

...ropertyDefined By  args : Array 参数。Handler  caller : * 执行域(this)。Handler  method : Function 处理方法。Handler  once : Boolean = false 表示是否只执行一次。如果为true,回调后执行recover()进行回收,回收后会被再利用,默认为false 。HandlerPu...

来源: laya_api 发布时间: 20170929

1677. 苹果iOS审核被拒Guideline 4.3 - Design [ 78%]

...nt or language, which is considered a form of spam. The next submission of this app may require a longer review time, and this app will not be eligible for an expedited review until this issue is resolved. Next Steps - Review the Design section of the App Store Review Guidelines. - Ensure your app i...

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

1678. Animation创建和销毁的问题 [ 78%]

... Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; tes...

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

1679. laya.utils.Handler [ 78%]

...ropertyDefined By  args : Array 参数。Handler  caller : * 执行域(this)。Handler  method : Function 处理方法。Handler  once : Boolean = false 表示是否只执行一次。如果为true,回调后执行recover()进行回收,回收后会被再利用,默认为false 。HandlerPu...

来源: Laya2.0_api 发布时间: 20190513

1680. tween 函数的单次执行任务数量问题 [ 78%]

...leX": 0,              // "scaleY": 0 },550,null,Handler.create(this,this.skillEffecting)); 如代码所示,如果写了四个需要变化的属性,前两个不会执行,只有后面的会执行。 分两个tween 写也是这样,是有什么不对的么?还是单次只能写2个...

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