大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0062 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
... * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static sceneRoot:...
来源: Laya_社区 发布时间: 20181014
...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar();package { import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; pu...
来源: Laya_示例 发布时间: 20260106
...晕 } export default class RoleBase extends Laya.Script3D{ public nGrade:number = 0; public nSpeed:number = 5; public sprite:Laya.Sprite3D = null; public animator:Laya.Animator = null; public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Ani...
来源: Laya_社区 发布时间: 20191026
...etInterval( this.addball.bind( this ),500); } public addball(){ for( let i:number = 0 ; i < 6; i++){ let ball = this.getObj(); ball.x = (i%6) *150 ball.y = -200 Laya.Tween.to( ball,{y: 1500 } ,5000,Laya.Ease.linearOut,Laya.Handler.create(this,this.removeball,[ball])); Laya.stage.addChild( ball );...
来源: Laya_社区 发布时间: 20180226
...; } /**加载优先级,越小越优先,最小为0 */ private priority: number = 1; /** * 混合加载 * @param resKey * @param otherLoadData * @param complete * @param progress * @param priority */ public load(resKey: string, otherLoadData: any, complete?: Laya.Handler, progress?: Laya.Handler, ...
来源: Laya_社区 发布时间: 20191107
...s calculateBoundsintersection calculateBoundsintersection(bounds: Bounds): number Defined in laya/d3/core/Bounds.ts:217 Parameters bounds: Bounds Returns number -1为不相交 不为0的时候返回值为相交体积 clone clone(): any Defined in laya/d3/core/Bounds.ts:256 克隆。 Returns any 克...
来源: Laya3.0_api 发布时间: 20231102
...s, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: stri...
来源: Laya_示例 发布时间: 20260106
...s, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: stri...
来源: Laya2.0_示例 发布时间: 20260106
...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar();package { import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; pu...
来源: Laya2.0_示例 发布时间: 20260106
...lculateBoundsintersection calculateBoundsintersection(bounds: BoundsImpl): number Defined in laya/d3/math/BoundsImpl.ts:229 Parameters bounds: BoundsImpl Returns number -1为不相交 不为0的时候返回值为相交体积 clone clone(): any Defined in laya/d3/math/BoundsImpl.ts:268 克隆。 Retu...
来源: Laya3.0_api 发布时间: 20231115