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

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

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

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

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

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

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

173. laya.resource.Texture2D_API3.0 [ 32%]

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

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

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

175. laya.d3.component.Animator_API3.0 [ 31%]

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

176. laya.resource.RenderTextureCube_API3.0 [ 31%]

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

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

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

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

178. laya.components.AnimationClip2D_API3.0 [ 30%]

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

179. laya.d3.component.animator.Animator_API3.0 [ 29%]

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

180. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 27%]

...签添加到页面。 `var client:any = new Laya.Browser.window.Demo1();`实例js声明的那个类。 `client.start();`调用实例的函数。 编译运行上面的代码。打开谷歌的控制台,可以看到输出: **“我被加载进来了”** **“调用方法”** #### 通过script...

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