大约有 184 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
...也是非常简单。 创建复合碰撞形状的方式并不复杂,先实例化复合碰撞形状CompoundColliderShape(),再通过复合碰撞形状对象的addChildShape方法添加基础碰撞形状子对象即可。 我们继续通过代码和注释来理解。编写代码如下所示: /* ...
来源: Laya3.0_文档 发布时间: 20251010
...从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
...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
...} 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
...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
...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
...翻转更多的粒子。 Enable GPUInstancing:控制是否要使用 GPU 实例化来渲染粒子系统。需要使用网格渲染模式并使用兼容的着色器。 Pivot:修改旋转粒子的中心轴心点。此值是粒子大小的乘数。 Visualize Pivot:在场景面板中预览粒子轴...
来源: Laya3.0_文档 发布时间: 20260122
...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
...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
...签添加到页面。 `var client:any = new Laya.Browser.window.Demo1();`实例化js声明的那个类。 `client.start();`调用实例的函数。 编译运行上面的代码。打开谷歌的控制台,可以看到输出: **“我被加载进来了”** **“调用方法”** #### 通过script...
来源: Laya2.0_文档 发布时间: 20210715