大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
...amera.clearFlag = BaseCamera.CLEARFLAG_SKY; //天空盒 BaseMaterial.load("res/threeDimen/skyBox/skyBox1/skyBox.lmat", Handler.create(null, function(mat:SkyBoxMaterial):void { camera.skyboxMaterial = mat; Laya.timer.frameLoop(1, this, function():void { mat.rotation += 0.1; }); })); } 2018-10-22 0 1 ...
来源: Laya_社区 发布时间: 20181017
...demo 2.3.0版本微信小游戏库错误 1.附件为2.3.0模板项目 2.将res部署到cdn,设置Laya.URL.basePath="cdn地址" 3.发布微信小游戏(目前环境我已经全部处理好,可以直接运行release/wxgame_pack 小游戏项目) 解压后文件夹 说明:layaair_demo 示例源...
来源: Laya_社区 发布时间: 20191230
...t WebGL = Laya.WebGL; export class Main { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.ali...
来源: Laya2.0_文档 发布时间: 20210715
...:2019-6-13* #### 获取动画组件 导出后的资源拷贝到项目 `bin/res` 目录下,通过代码加载角色资源。如果直接加载到场景上你会发现动画会自动播放。我们要怎么控制动画的播放呢? LayaAir 3D引擎的Sprite3D类提供了 `getComponent()` 方法来...
来源: Laya2.0_文档 发布时间: 20210715
...要扩展名,外部保证fnt与png文件同名this.mBitmapFont.loadFont("res/bitmapFont/test.fnt",new Laya.Handler(this,onLoaded)); c.将字体文件放到 LayaAir IDE 项目的资源目录中(laya/assets/) d. 6.完整代码如下所示: //初始化引擎Laya.init(550,400);//自定义...
来源: Laya_社区 发布时间: 20180919
...库是要在主程序之前引用还是在之后引用呀 <script src='res/protobuf.js' type='text/javascript'></script> <script src='res/bytebuffer.js' type='text/javascript'></script> <script src='LayaSample.max.js' loader='laya'></script> 有没有人能提供p...
来源: Laya_社区 发布时间: 20170218
...LE; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(da...
来源: Laya_社区 发布时间: 20170803
...具体结构请参考附件 Laya.loader.load([{url: "res/atlas/flicker/image.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:Tes...
来源: Laya_社区 发布时间: 20170608
...is.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第一个动画 var skeleton0: Laya.Skeleton; //从动画模板创建动画播放对象 skeleton0 = this.templet.buildArmat...
来源: Laya2.0_文档 发布时间: 20210715
...)"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed....
来源: Laya_社区 发布时间: 20190217