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

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

791. TrailSprite3D的ALIGNMENT_TRANSFORM_Z模式和ALIGNMENT_VIEW模式有什么区别? [ 57%]

...下,最后回到原大小或原位置,应该用什么缓动模式 Laya.Handler.create和new Laya.Handler有啥区别 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? mac 用layaair2.0 ide 的编辑模式下,cpu爆满 atlas目录下.json文件与.atlas的区别 LAYAAIR...

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

792. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 57%]

... 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

793. 加载多个protobuf文件报错 [ 57%]

...uf/bag.proto", type:Loader.TEXT } );        Laya.loader.load(assets, Handler.create(this, onAssetsLoaded));   首先确认下类型是为TEXT吗,如果这样写就是报如下错 Uncaught Error: Parse error at line 1: unexpected 'undefined'     at Parser.ProtoBuf.DotProto.ParserPrototype...

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

794. LayaAir IDE 语言包的使用? [ 57%]

...Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("lang.lang",Handler.create(t...

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

795. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 57%]

...ne3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform....

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

796. [Laya2.3] 天空盒在微信上的显示问题 [ 57%]

...         }          Laya.loader.create(sceneUrl,new Laya.Handler(this,completeFunc)); 附件 : --> scene1.zip 2019-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回...

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

797. 图片不能按轴心旋转 [ 57%]

... Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",0,0,0,0,Handler.create(this,aa)); function aa(texture){ bg.pivot(texture.width,texture.height); bg.alpha = 1; bg.rotation = 10; } 2018-05-19 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已...

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

798. 如何在项目中加载ttf字体? [ 57%]

...uestion/1645写的, Laya.loader.load("font/本墨竟圆-常规.ttf",Laya.Handler.create(this,OnComplete_FontLoad),null,Laya.Loader.BUFFER); function OnComplete_FontLoad() { console.log("加载字体"); var newFont = Laya.loader.getRes("font/本墨竟圆-常规.ttf"); if(Laya.Browser.window.conch) ...

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

799. 自适应问题 [ 57%]

... Laya.loader.load("http://localhost/layabox/layabox/layabox/res/bg.png'", Handler.create(this, function () {         var t = Laya.loader.getRes(skin);         var _sprite = new Sprite();         _sprite.graphics.drawTexture(t, 0, 0);         Laya.stage.addChild(_sprite); }); 但是...

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

800. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 57%]

...fConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught Reference...

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