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

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

71. laya.d3.core.Sprite3D [ 45%]

...oolean 检测指定事件类型是否是鼠标事件。 EventDispatcher  load(url:String, complete:Handler):void[static] 加载网格模板。 Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDisp...

来源: Laya2.0_api 发布时间: 20190513

72. 模型与动画的导入使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...rt"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Eve...

来源: Laya3.0_文档 发布时间: 20251010

73. Spine渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...载Spine动画数据资源(json文件),注意一定要设置为Laya.Loader.SPINE类型,否则不会把json认为是SPINE资源 Laya.loader.load("girl2/mix-and-match-pro.json", Laya.Loader.SPINE).then(() => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addCompon...

来源: Laya3.0_文档 发布时间: 20260131

74. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

... "full"; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(...

来源: Laya2.0_文档 发布时间: 20210714

75. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

... "full"; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stag...

来源: Laya2.0_文档 发布时间: 20210715

76. laya.media.VideoTexture_API3.0 [ 43%]

... BaseTexture VideoTexture Index Constructors constructor Properties _id _isLoaded _needUpdate destroyedImmediately element lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel buffered compareMode cpuMemory currentSrc currentTime defaultTexture destroyed dimension duration ended error filte...

来源: Laya3.0_api 发布时间: 20231115

77. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 43%]

...lf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new ReflectionProbe(): ReflectionProbe Overrides Sprite3D.constructor Defined in laya/d3/core/reflectionProbe/ReflectionProbe.ts:50 Returns ReflectionProbe Properties Optional _extra _extra: INod...

来源: Laya3.0_api 发布时间: 20231102

78. 导航标签组组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(e: any = null): void { let tabA: Laya.Tab = this.createTab(this.skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#33...

来源: Laya3.0_文档 发布时间: 20251010

79. 复选框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skins).then(() => { this.onCheckBoxSkinLoaded(); }); } private onCheckBoxSkinLoaded(e: any = null): void { let cb: Laya.CheckBox; for (let i: number = 0; i < this.COL_AMOUNT; ++i) { for (let j: number =...

来源: Laya3.0_文档 发布时间: 20251010

80. 下拉选项框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then(() => { let ComboBox: Laya.ComboBox = new Laya.ComboBox(this.skin, "item0,item1,item2,item3,item4,item5"); ComboBox.labelSize = 30; ComboBox.itemSize = 25 this.owner.addChild(ComboBox); ComboBox...

来源: Laya3.0_文档 发布时间: 20251010