• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0062 秒)

1401. 2.0 Beta3版本中,runtime脚本的的问题 [ 61%]

... * 游戏初始化配置; */ 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

1402. UI-ProgressBar [ 61%]

...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

1403. 动画混合问题,Avatar动画混合报错. [ 61%]

...晕 }  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

1404. 模拟石头下落过程不明抖动 [ 61%]

...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

1405. laya接入fairyGUI的时候资源加载方式? [ 61%]

...; } /**加载优先级,越小越优先,最小为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

1406. laya.d3.core.Bounds_API3.0 [ 61%]

...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

1407. UI-RadioGroup [ 61%]

...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

1408. UI-RadioGroup [ 61%]

...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

1409. UI-ProgressBar [ 60%]

...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

1410. laya.d3.math.BoundsImpl_API3.0 [ 60%]

...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