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

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

151. 2.x引擎项目升级说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...类型! 类型也不必关心,只需要知道它有一个create方法实例节点树。*/ let node = res.create(); }); 1.8 旧版本引擎load和create的兼容性问题 3.0以前的引擎,有Laya.loader.load()和Laya.loader.create()方法两个方法,分别用于加载2D和3D资源。 3....

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

152. 3D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...也是非常简单。 创建复合碰撞形状的方式并不复杂,先实例复合碰撞形状CompoundColliderShape(),再通过复合碰撞形状对象的addChildShape方法添加基础碰撞形状子对象即可。 我们继续通过代码和注释来理解。编写代码如下所示: /* ...

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

153. 实体组件系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...从assets目录下,拖入prefab资源。运行时会直接获取到加载实例后的prefab。 (动图4-5) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:28:00 img{cursor:pointer}

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

154. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 34%]

...} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/vvv.fnt", new Laya.Handler(this, this.onFontLoaded, [bitmapFont]))...

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

155. CPU粒子系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 33%]

...翻转更多的粒子。 Enable GPUInstancing:控制是否要使用 GPU 实例来渲染粒子系统。需要使用网格渲染模式并使用兼容的着色器。 Pivot:修改旋转粒子的中心轴心点。此值是粒子大小的乘数。 Visualize Pivot:在场景面板中预览粒子轴...

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

156. laya.resource.Texture2D_API3.0 [ 33%]

...verrides BaseTexture.constructor Defined in laya/resource/Texture2D.ts:247 实例2D纹理 Parameters width: number height: number format: TextureFormat Default value mipmap: boolean = true canRead: boolean Default value sRGB: boolean = false Default value premultiplyAlpha: boolean = false Returns...

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

157. laya.resource.RenderTextureCube_API3.0 [ 32%]

...RenderTexture.constructor Defined in laya/resource/RenderTextureCube.ts:15 实例一个RendertextureCube Parameters size: number 像素 colorFormat: RenderTargetFormat 颜色格式 depthFormat: RenderTargetFormat 深度格式 generateMipmap: boolean 是否生成mipmap multiSamples: number Returns...

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

158. laya.d3.component.Animator_API3.0 [ 32%]

...ructor Defined in laya/d3/component/Animator.ts:134 创建一个 Animation 实例。 Returns Animator Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component....

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

159. laya.components.AnimationClip2D_API3.0 [ 31%]

...s Resource.__constructor Defined in laya/components/AnimationClip2D.ts:214 实例一个2D动画clip类 Returns AnimationClip2D Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Resource.ts:97 destroyedImmediately destroyedImmediately: boolean Inherited from Resou...

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

160. laya.d3.component.animator.Animator_API3.0 [ 30%]

...fined in laya/d3/component/Animator/Animator.ts:164 创建一个 Animation 实例。 Returns Animator Properties _controller _controller: AnimatorController Defined in laya/d3/component/Animator/Animator.ts:93 Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/co...

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