大约有 2,110 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
...tml/HtmlElement.ts:28 Returns HtmlElement Properties _attrs _attrs: Record<string, any> Defined in laya/html/HtmlElement.ts:28 name name: string Defined in laya/html/HtmlElement.ts:21 obj obj: IHtmlObject Defined in laya/html/HtmlElement.ts:25 space space: number Defined in laya/html/HtmlEleme...
来源: Laya3.0_api 发布时间: 20231115
...fromArray length lengthSquared normalize scale set setValue toArray toDefault vadd vsub writeTo Clamp TransformNormal add cross distance distanceSquared dot equals lerp max min multiply normalize scalarLength scalarLengthSquared scale subtract transformCoordinate transformQuat transformV3ToV3 transf...
来源: Laya3.0_api 发布时间: 20231102
...对应的编号对应好,否则使用时会出问题 */ export default class PoolManager { static _instance:any; public m_ObjectPoolDic:{[key:number]:QueueT<Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) } //...
来源: Laya_社区 发布时间: 20191206
...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 LT 赞同来自: 告辞 2018-07-18 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 自己做判断。 2018-06-25 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, ...
来源: Laya_社区 发布时间: 20180625
...ivate 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: number, x2...
来源: Laya_社区 发布时间: 20241008
... sizeH; } return this._normalizedViewport; },function(value){ if (value.x < 0 || value.y < 0 || (value.x+value.width)> 1 || (value.y+value.height)> 1) throw new Error("Camera: viewport size invalid.","value"); this._viewportExpressedInClipSpace=true; this._normalizedViewport=value; this....
来源: Laya_社区 发布时间: 20170601
...元素数据量大,生成ui时,这类元素还未准备好,比如说<SkeletonPlayer>,当然大尺寸背景图也会在ui生成后一会儿才会显现。 生成ui时,有什么方法能判断,其包含的元素已经加载完成了吗? 或者说,那个<SkeletonPlayer>...
来源: Laya_社区 发布时间: 20180623
...ors constructor new Texture(source?: Texture | BaseTexture, uv?: ArrayLike<number>, sourceWidth?: number, sourceHeight?: number): Texture Overrides Resource.__constructor Defined in laya/resource/Texture.ts:228 创建一个 Texture 实例。 Parameters Default value source: Texture | BaseTextu...
来源: Laya3.0_api 发布时间: 20231115
... this, this.loop); }; Class.prototype.bg = function() { for (var i = 0; i < 2; i++) { this.img[i] = new Laya.Image('background.png'); this.addChild(this.img[i]); } this.img[0].y = 0; this.img[1].y = -852; } Class.prototype.loop = function() { for (var i = 0; i < this.img.length; i++) { this.im...
来源: Laya_社区 发布时间: 20170619
...应该是在launch.json不同) 我发现有一点差异,下面这行<script type="text/javascript" src="node_modules/requirejs/require.js"></script> ,而vscode里可以注释掉,还是正常。 用VS Code测试: 运行后一切正常: 而layaAir IDE,如果注释掉这...
来源: Laya_社区 发布时间: 20171116