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

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

61. 动画不显示 [ 74%]

...aya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     import laya.maths.Point;     import laya.utils.Tween;     import laya.d3.resource.models.PrimitiveMesh;     import laya.debug.DebugP...

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

62. laya.net.LoaderManager [ 73%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实...

来源: laya_api 发布时间: 20170929

63. 使用外部引擎播放layaair制作的.ani [ 73%]

...tElement.clientWidth * 2, document.documentElement.clientHeight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添...

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

64. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 73%]

...Enter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this...

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

65. 输入设备-指南针 [ 73%]

....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本...

来源: Laya_示例 发布时间: 20240930

66. 重复背景,全方向地图拖动Demo [ 73%]

... * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown) Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp) this.moveMap(this.offsetX,this.offsetY) } moveMap(x,y){ let X = -x00 let Y = -y00 ...

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

67. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 73%]

... 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 请问下loader如何强制加载一个文件,避免浏览器的缓存 laya.d3.utils.Utils3D的convert3DCoordTo2DScreenCoord这个接口api描述是不是错了? 用Mac下Unity5.6.2f1导出的模型在Mac浏览器显示正常,发...

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

68. 输入设备-指南针 [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); //...

来源: Laya2.0_示例 发布时间: 20240930

69. swf预加载问题 [ 73%]

swf预加载问题 loader不能用于swf的预加载,于是用MovieClip的​load方式做了个。不知道会不会有问题。package util { import laya.ani.swf.MovieClip; import laya.events.Event; import laya.events.EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public cl...

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

70. Animation创建和销毁的问题 [ 72%]

...同样的代码,第一次创建就可以显示动画,然后当使用了Loader.clearRes之后再次创建就怎么都显示不了,是哪里用错了么?求指点 附件里上传了测试工程,打开后先按A键可以看到屏幕有两条鱼,然后再按空格将其彻底移除,然后...

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