大约有 2,984 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(2430) Laya2.0_文档(172) Laya3.0_api(101) Laya_示例(79) Laya3.0_文档(65) Laya2.0_api(55) laya_api(42) Laya2.0_示例(40)
...WALL; Laya.stage.bgColor = "#232628"; Laya.stage.bgColor = "#3d3d3d"; Laya.loader.load(skins, Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { var tabA = createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB = createTab(skins[1]); tabB.pos...
来源: Laya_示例 发布时间: 20251209
...r4.7, Air SDK18.0(使用ASC2.0) FB中的报错 不兼容的 override。 LoaderHook.as /libs/laya/src/laya/debug/tools/enginehook 第 71 行 Flex 问题 初步诊断 laya.net.LoaderManager::load 8个参数 laya.debug.tools.enginehook.LoaderHook::load 7个参数 AS语法上ov...
来源: Laya_社区 发布时间: 20161207
...ner isCreateFromURL off offAll offAllCaller on once destroyUnusedResources load Constructors constructor new AnimationClip(): AnimationClip Overrides Resource.__constructor Defined in laya/d3/animation/AnimationClip.ts:87 创建一个 AnimationClip 实例。 Returns AnimationClip Properties _id _id:...
来源: Laya3.0_api 发布时间: 20231115
...r Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. 2018-01-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180115
...物体 添加物体: var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null, checkHit); var hit...
来源: Laya_社区 发布时间: 20170915
.../新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane....
来源: Laya2.0_文档 发布时间: 20210714
...容 { "name":"zzy" } 第一种方式 private on2DComplete(): void { Laya.loader.load("zxc.json", Laya.Handler.create(this,this. onLoadConfigComplete),null,Laya.Loader.JSON); } wayPoints:JSON; private onLoadConfigComplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(...
来源: Laya_社区 发布时间: 20180119
...你的意思,你可以直接给ani监听一个加载完成事件,Event.loaded,在loaded下启动timer及时器frameloop,在loop的回调里去获取ani正在播放的索引,针对索引做判断操作
来源: Laya_社区 发布时间: 20161011
UI相关问题 Laya.Loader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但...
来源: Laya_社区 发布时间: 20180326
资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...
来源: Laya_社区 发布时间: 20161230