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

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

441. 报错 Laya 的标识符中重复 [ 80%]

... Laya.stage.bgColor = "#232628"; var res = [ {url:"res/atlas/loading.json",type:Laya.Loader.ATLAS}, //{url:"res/atlas/loading.png",type:Laya.Loader.IMAGE}, //{url:"res/atlas/loading/01.png",type:Laya.Loader.IMAGE} ]; Laya.loader.load(res); showact(); })(); 2016-12-30 添加评论 免费帖 --> 分...

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

442. laya.d3.core.particleshuriken.module.GradientSize_API3.0 [ 80%]

...gradientYMax gradientYMin gradientZ gradientZMax gradientZMin separateAxes type Methods clone cloneTo getMaxSizeInGradient createByGradient createByGradientSeparate createByRandomTwoConstant createByRandomTwoConstantSeparate createByRandomTwoGradient createByRandomTwoGradientSeparate Constructors co...

来源: Laya3.0_api 发布时间: 20231115

443. laya.d3.core.light.LightSprite [ 80%]

...静态。 Sprite3D layer : int 获取蒙版。 Sprite3D  lightmapBakedType : int 获取灯光烘培类型。 LightSprite  LIGHTMAPBAKEDTYPE_BAKED : int = 2[static] 灯光烘培类型-烘焙。LightSprite  LIGHTMAPBAKEDTYPE_MIXED : int = 1[static] 灯光烘培类型-混合。LightSprite  LIG...

来源: Laya2.0_api 发布时间: 20190513

444. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 80%]

...,文件都带了hash, var resArray = [ {url: "res/atlas/common.atlas", type: Laya.Loader.ATLAS}, {url: "hall/1_login/login_bg.png", type: Laya.Loader.IMAGE}, {url: "hall/1_login/Bottom_article.png", type: Laya.Loader.IMAGE}, {url: "res/atlas/hall/login.atlas", type: Laya.Loader.ATLAS}, ] Laya.lo...

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

445. wx.canvasToTempFilePath在TS下如何使用啊? [ 80%]

... console.log(res.tempFilePath) } }) 一直报错[ts] The 'this' context of type 'typeof wx' is not assignable to method's 'this' of type 'string'. canvasId也是我乱写的 如果才能正确获取小游戏当前画布的canvasId啊? 2018-11-28 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

446. 2.0.2使用worker加载图片的问题 [ 79%]

...worker.js中执行了这句话`onmessage=function(t){var e=t.data;switch(e.type){case"load":loadImage2(e)}};`,e=t.data,也就是上面postMessage中的url,是一个字符串,那么e.type是undefined,根本不会执行到loadImage2(e)。 附件 : --> Demo.rar 2019-06-05 添加评论 免费...

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

447. laya.display.Stage [ 79%]

...域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite  mouseX : Number[override] [read-only] 鼠标在 Stage 上的 X 轴坐标。Stage  mouseY : Number[override] [read-only] 鼠标在 Stage 上的 Y 轴坐标...

来源: laya_api 发布时间: 20170929

448. laya.d3.core.trail.TrailSprite3D [ 79%]

... Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控...

来源: Laya2.0_api 发布时间: 20190513

449. laya.d3.component.Animator [ 79%]

...= 0, endFrame:int = 4294967295):void 添加动画片段。 Animator event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getClip(playName:String):AnimationClip 通过播放名字获取动画片段。 Animator  getClipCount():int 获取动画片段个数。 Animator hasLis...

来源: laya_api 发布时间: 20170929

450. laya.d3.core.Camera_API3.0 [ 79%]

...cene _up _url clearFlag enableRender name tag useOcclusionCulling RENDERINGTYPE_DEFERREDLIGHTING RENDERINGTYPE_FORWARDRENDERING WORLDINVERTFRONT _contextScissorPortCatch Accessors active activeInHierarchy aspectRatio boundFrustum canblitDepth clearColor clientHeight clientWidth components cullingMas...

来源: Laya3.0_api 发布时间: 20231115