大约有 2,830 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0255 秒)
Laya_社区(1670) Laya3.0_api(668) Laya2.0_文档(133) Laya2.0_api(128) laya_api(122) Laya3.0_文档(82) Laya2.0_示例(16) Laya_示例(11)
... 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
...gradientYMax gradientYMin gradientZ gradientZMax gradientZMin separateAxes type Methods clone cloneTo getMaxSizeInGradient createByGradient createByGradientSeparate createByRandomTwoConstant createByRandomTwoConstantSeparate createByRandomTwoGradient createByRandomTwoGradientSeparate Constructors co...
来源: Laya3.0_api 发布时间: 20231115
...静态。 Sprite3D layer : int 获取蒙版。 Sprite3D lightmapBakedType : int 获取灯光烘培类型。 LightSprite LIGHTMAPBAKEDTYPE_BAKED : int = 2[static] 灯光烘培类型-烘焙。LightSprite LIGHTMAPBAKEDTYPE_MIXED : int = 1[static] 灯光烘培类型-混合。LightSprite LIG...
来源: Laya2.0_api 发布时间: 20190513
...,文件都带了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
... 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
...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
...域的属性为: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
... 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
...= 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
...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