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

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

711. UI-Tab [ 70%]

...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

712. AS环境下调用DebugTool.init会出现编译时报错 [ 70%]

...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

713. laya.d3.animation.AnimationClip_API3.0 [ 70%]

...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

714. 用微信小游戏测试,载入一个3D的角色.lh报错了,LayaAir的本地测试OK [ 70%]

...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

715. 射线一直无法获取物体 [ 70%]

...物体     添加物体:  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

716. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 70%]

.../新建材质 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

717. TypeScript Json 数据解析 [ 70%]

...容 { "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

718. laya的animation如何每一帧的去获取回调 [ 70%]

...你的意思,你可以直接给ani监听一个加载完成事件,Event.loaded,在loaded下启动timer及时器frameloop,在loop的回调里去获取ani正在播放的索引,针对索引做判断操作

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

719. Laya.Loader.getRes请教 [ 70%]

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

720. 资源加载清除问题 [ 70%]

资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...

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