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

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

701. 关于创建Sprite获取大小 [ 70%]

...于创建Sprite获取大小 发现个奇怪的问题,new Laya.Sprite().loadImage() 创建的对象大小不是图像大小,然后用getBounds获取也拿不到真实的大小?    这个建议官方改下接口,理论上width和height用来检测碰撞,那你看到的就应该是碰撞...

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

702. ios启动页面的白屏问题 [ 70%]

...接 提交 1 个回复 Monica - 知识达人 赞同来自: 打包之后的loading页面做不到完全屏蔽 我们的建议是在启动页面中播放一个你们公司的logo,如果你们项目中有制作进度条页面的话,可以在进度条页面的资源加载完成回调中(UI页面...

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

703. 关于功能模块资源回收预疑问 [ 70%]

...ts.push("res/apes/monkey2.png"); assets.push("res/apes/monkey3.png"); Laya.loader.load(assets, Handler.create(this, onAssetsLoaded)); private function onAssetsLoaded():void { for(var i:int = 0, len:int = assets.length; i < len; ++i) { var asset:Image = assets[i]; //查看log,清理前资源一...

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

704. 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_示例 发布时间: 20241001

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

706. 用微信小游戏测试,载入一个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

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

708. 射线一直无法获取物体 [ 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

709. 物理碰撞器(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

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