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

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

1. new Laya.Templet() 时,说这不是一个constructor [ 100%]

new Laya.Templet() 时,说这不是一个constructor TypeError: Laya.Templet is not a constructor HelloLayabox.ts:44 at new HelloLayabox (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:10103:28)   at Object.47.../bin/libs/node_modules/es6-promise (file:///D:/layaProjects/mylaya/myLaya/bi...

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

2. 骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉 [ 93%]

骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉     /**     *释放纹理     */     __proto.destroy=function(){         this._isDestroyed=true;         var tTexture;         var $each_tTexture;         /*for...

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

3. Skeleton骨骼动画内存泄漏 [ 86%]

...会一直往上升,降不下来。 核心代码如下: private te:Laya.Templet; private sk:Laya.Skeleton; private onKeyDown(e):void{ if(e.keyCode == 49 || e.keyCode == 97){ if(this.te == null){ this.te = new Laya.Templet(); this.te.on(Laya.Event.COMPLETE, this, this.teComplete); this.te.loadAni(...

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

4. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 83%]

...Stage = Laya.Stage; var Event = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary {     constructor() {         this.aniPath = "res/powerup-pro.skel";         this.index = -1;         // Laya.init(Browser.width, Browser.height, WebGL);       ...

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

5. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 83%]

...(complete) { this.completeHandler = complete; } this.aniUrl = aniUrl; this.templet = new Templet(); this.templet.on(Event.COMPLETE, this, this.parseComplete); // this.templet.on(Event.ERROR, this, this.onError); this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.he...

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

6. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 83%]

...ineSkeleton = Laya.SpineSkeleton; import Loader = Laya.Loader; import SpineTemplet = Laya.SpineTemplet; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private skeleton: SpineSkeleton; private index: number = -1; public pageWidth: number; public pageHeight: n...

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

7. laya.ani.bone.Templet_API3.0 [ 83%]

...rotected All Inherited Externals Only exported Menu Globals "laya/ani/bone/Templet" Templet Class Templet 动画模板类 Hierarchy AnimationTemplet Templet Index Constructors constructor Properties _id aniSectionDic bindBoneBoneSlotDic boneSlotArray boneSlotDic deformAniArr destroyedImmediately dra...

来源: Laya3.0_api 发布时间: 20231115

8. spine 推荐使用方式 [ 82%]

...    1、直接 new Laya.Skeleton,然后load,不用自己手动管理Laya.Templet加载和释放     2、移除Laya.Skeleton可以cache成通用节点,避免重复创建     3、释放资源直接调用Laya.loader.clearTextureRes     4、每次使用之前,先检测Templete对应的Textur...

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

9. 卧槽,这个引擎要不要太垃圾啊 [ 80%]

...博 QZONE 微信 shimp 赞同来自: 那请问: 1. this.sk_51 = new Laya.Templet(); this.sk_71 = new Laya.Templet(); this.sk_51.loadAni("birdami/slots_51.sk"); this.sk_71.loadAni("birdami/slots_71.sk");   在加载多个.sk的情况下,如何知道所有的.sk文件都加载完成?   2.队...

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

10. [临时解决]bug?加载sk问题 [ 78%]

...der预先加载什么,当然atlas除外。 // 由于Skeleton内部有个_templet,只有这个变量真的接收到Templet对象后才算是Skeleton准备就绪了, // 因此,我们在最开始设计了一个预加载过程,不断检测ui中拖入的Skeleton类的对象的_templet是否都...

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