大约有 1,216 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0051 秒)
Laya3.0_api(405) Laya_社区(358) Laya2.0_api(224) laya_api(168) Laya2.0_文档(31) Laya3.0_文档(20) Laya2.0_示例(7) Laya_示例(3)
...具集。 Hierarchy UIUtils Index Methods fillArray gray toColor Methods Static fillArray fillArray(arr: any[], str: string, type?: typeof Number | typeof String): any[] Defined in laya/ui/UIUtils.ts:19 用字符串填充数组,并返回数组副本。 Parameters arr: any[] 源数组对象。 str:...
来源: Laya3.0_api 发布时间: 20231115
...tionMatrix:Matrix4x4, viewMatrix:Matrix4x4, world:Matrix4x4, out:Ray):void[static] 计算鼠标生成的射线。 Picker rayIntersectsTriangle(ray:Ray, vertex1:Vector3, vertex2:Vector3, vertex3:Vector3):Number[static] 计算射线和三角形碰撞并返回碰撞距离。 PickerConstructor Detail...
来源: Laya2.0_api 发布时间: 20190513
... propertyParams:Object = null, constructParams:Array = null):AnimationClip[static] AnimationClip addEvent(event:AnimationEvent):void 添加动画事件。 AnimationClip duration():Number 获取动画片段时长。 AnimationClip load(url:String, complete:Handler):void[static] 加载动画...
来源: Laya2.0_api 发布时间: 20190513
...资源自己封装一个方法来管理引用地址const res = [{ url: setStaticPrefix("card/card_item_bg.png"), type: Laya.Loader.IMAGE }] /** 添加文件hash */ export const setStaticPrefix = (url:string) :string => { if (staticHash[`images/${url}`]) { return staticHash[`images/${url}`] } ret...
来源: Laya_社区 发布时间: 20180412
...池。 * @param sign 对象类型标识字符。 * @return 对象池。 */ static getPoolBySign(sign: string): any[] { return Pool._poolDic[sign] || (Pool._poolDic[sign] = []); } Laya.Pool 是通过对象类型标识符,也就是一个字符串名字来标识和管理对象池的。如果对象池...
来源: Laya3.0_文档 发布时间: 20240910
...ixueying 赞同来自: /**地图格子从左上角开始渲染*/ public static const RENDERORDER_RIGHTDOWN:String = "right-down"; /**地图格子从左下角开始渲染*/ public static const RENDERORDER_RIGHTUP:String = "right-up"; /**地图格子从右上角开始渲染*/ public static const RE...
来源: Laya_社区 发布时间: 20161130
...e(data:*, propertyParams:Object = null, constructParams:Array = null):void[static] 异步回调 TerrainHeightData load(url:String, complete:Handler, widht:int, height:int, bitType:int, value:Number):void[static] 加载地形高度模板,注意:不缓存。 TerrainHeightDataProperty Detail_bitType...
来源: Laya2.0_api 发布时间: 20190513
...DOMElementInArea getGlobalPosAndScale getTransformRelativeToWindow Methods Static fitDOMElementInArea fitDOMElementInArea(dom: any, coordinateSpace: Sprite, x: number, y: number, width: number, height: number): void Defined in laya/utils/SpriteUtils.ts:131 使DOM元素使用舞台内的某块区域...
来源: Laya3.0_api 发布时间: 20231115
...ow Inherited Public Constants ConstantDefined By ALPHABLENDING : int = 2[static] Sky DIFFUSETEXTURE : int = 3[static] Sky INTENSITY : int = 1[static] Sky MVPMATRIX : int = 0[static] SkyProperty Detailtexturepropertytexture:Texture2D 获取天空立方体纹理。 Implementation public f...
来源: laya_api 发布时间: 20170929
...是C#代码 public class Class1<T> where T : class, new() { private static T instance; public static T GetInstence() { if (null == instance) { instance = new T(); } return instance; } } 这样我在其他地方,继承Class1,就可以直接类名.GetInstence()获取该类的实例 2018-06-1...
来源: Laya_社区 发布时间: 20180619