大约有 3,269 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0077 秒)
...ay = atlasJson.meta.image.split(","); var split:String = url.indexOf("/") >= 0 ? "/" : "\\"; var idx:int = url.lastIndexOf(split); var folderPath:String = idx >= 0 ? url.substr(0, idx + 1) : ""; for (var i:int = 0, len:int = toloadPics.length; i < len; i++) { toloadPics[i] = folderPath + to...
来源: Laya_社区 发布时间: 20180830
...* *结束加载,处理是否缓存及派发完成事件 <code>Event.COMPLETE</code> 。 *@param content 加载后的数据 */ __proto.endLoad=function(content){ content && (this._data=content); if (this._cache)Load...
来源: Laya_社区 发布时间: 20180101
... * @param endValue 属性结束值。 * @return Tween对象。 */ go<T>(propName: string, startValue: T, endValue: T): this; Tween中还有许多方法用于实现各种效果,这里不再列举,有需要的开发者可以参考API文档。 3.2 生命周期 开发者可以调用缓动的ki...
来源: Laya3.0_文档 发布时间: 20251010
...nView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded() { console.log("进度条"); Laya.stage.addChild(fairygui.GRoot.inst.displayObject); fairygui.UIPackage.addPackage("res/Public"); var ProgressBarPage=fairygui.UIPackage.createObject("Public","ProgressP...
来源: Laya_社区 发布时间: 20171207
...js 和 Background.js 将我们需要的素材放到项目目录下面bin -> res RunGame.js是我们游戏的入口类 //后面会提到具体的作用 Background,js 是我们的背景类 //======================= 美丽的分割线 ======================== 加载图片并且测试图...
来源: Laya_社区 发布时间: 20160722
官网的引擎示例问题 在官网的 引擎示例->性能测试->卡通人物2 的那个例子稳定后我显示看到DrawCall是2,我想知道是通过引擎什么功能来优化到这个程度?用这个功能要注意什么?不然就会导致什么效果 2018-02-05 添加评论 ...
来源: Laya_社区 发布时间: 20180205
...d(maskArea); this.on(Laya.Event.CLICK, this, ()=>{ }); } showTips(posX: number, posY: number, width:number,height:number,skinRes: string) { this.tipContainer = new ...
来源: Laya_社区 发布时间: 20200119
... { private points: number[]; constructor(points: number[]) { if (points.length < 4 || points.length % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: number, y1: numbe...
来源: Laya_社区 发布时间: 20241008
...中是否激活。 components get components(): ReadonlyArray<Component> Defined in laya/display/Node.ts:983 返回所有组件实例。 Returns ReadonlyArray<Component> 返回组件实例数组。 destroyed get destroyed(): boolean Defined in laya/display/Node.ts:92 是否已经销毁...
来源: Laya3.0_api 发布时间: 20231115
...对象的 type 属性值。 Static Readonly EMPTY EMPTY: Readonly<Event> = new Event() Defined in laya/events/Event.ts:14 一个空的 Event 对象。用于事件派发中转使用。 Static END END: string = "end" Defined in laya/events/Event.ts:123 定义 end 事件对象的 type 属性值...
来源: Laya3.0_api 发布时间: 20231115