大约有 350 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0041 秒)
Laya_社区(97) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(6) laya_api(6) Laya2.0_api(5)
...var arr:Array=[20,40,10,4,34,23,65,5,8]; trace(arr.sort(function(a:*, b:*):Number { return a.x > b.x ? 1 : -1}));(反序)Laya.init(550,400); var arr:Array=[20,40,10,4,34,23,65,5,8]; trace(arr.sort(function(a:*, b:*):Number { return a.x > b.x ? -1 : 1}));(从小到大) Laya.init(550,400...
来源: Laya_社区 发布时间: 20160506
...tic init init(stageConfig?: IStageConfig): Promise<void> init(width: number, height: number, ...plugins: any[]): Promise<void> Defined in Laya.ts:73 初始化引擎。使用引擎需要先初始化引擎,否则可能会报错。 Parameters Optional stageConfig: IStageConfig Returns Pro...
来源: Laya3.0_api 发布时间: 20231115
...ap: {} = SubShader.DefaultAttributeMap 顶点属性表。 [name: string]: [number, ShaderDataType] Default value uniformMap: UniformMapType = {} uniform属性表。 Default value uniformDefaultValue: {} = null [name: string]: ShaderDataItem Returns SubShader Properties Static IncludeUniformMap Inclu...
来源: Laya3.0_api 发布时间: 20231102
...ts:57 Parameters data: Transform3D Returns void drawCount get drawCount(): number set drawCount(drawCount: number): void Defined in laya/d3/RenderObjs/NativeOBJ/NativeInstanceRenderElementOBJ.ts:56 Returns number Defined in laya/d3/RenderObjs/NativeOBJ/NativeInstanceRenderElementOBJ.ts:52 Parameters...
来源: Laya3.0_api 发布时间: 20231115
...果前者为0或为空,则选择后者。 */ static get clientWidth(): number { Browser.__init__(); return Browser._clientWidth || Browser._window.innerWidth || Browser._document.body.clientWidth; } static set clientWidth(value: number) { Browser._clientWidth = value; } /** * 浏览器窗口可视...
来源: Laya3.0_文档 发布时间: 20241014
...(tTexture, arraybuffer, 10); } private parseComplete(): void { for (var i: number = 0; i = tAnimNum) { this.mActionIndex = 0; } for (var i: number = 0, n: number = this.mAnimationArray.length; i = tAnimNum) { mActionIndex = 0; } for (var i:int = 0, n:int = mAnimationArray.length; i < n; i++) { mAnim...
来源: Laya_示例 发布时间: 20241118
...n:String, materialBath:String):String[static] private Laya3D init(width:Number, height:Number, antialias:Boolean = false, alpha:Boolean = false, premultipliedAlpha:Boolean = true, stencil:Boolean = true):void[static] 初始化Laya3D相关设置。 Laya3DConstructor DetailLaya3D()Constructorpublic...
来源: laya_api 发布时间: 20170929
...{ private texturePath:string = "../../res/tinyMaggot.png"; private padding:number = 100; private maggotAmount:number = 5000; private tick:number = 0; private maggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor() { Laya.init(Browser.width,Browser.height, WebGL); L...
来源: Laya_示例 发布时间: 20241118
...teSpace: Laya.Vector3 = new Laya.Vector3(0, 1, 0); private monster_init_x: number = 0; private monster_init_y: number = 0; private monster_init_z: number = 0; private trans: Laya.Vector3; private rigidBody: Laya.Rigidbody3D; private tmp_x: number = 0; private tmp_y: number = 0; private tmp_z: number...
来源: Laya_社区 发布时间: 20200917
...ggots { private texturePath:string = "res/tinyMaggot.png"; private padding:number = 100; private maggotAmount:number = 5000; private tick:number = 0; private maggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor() { Laya.init(Browser.width,Browser.height, WebGL); L...
来源: Laya2.0_示例 发布时间: 20241118