大约有 2,985 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1072) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(78)
... 保存场景后,在RuntimeScript.ts中添加如下代码: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close...
来源: Laya3.0_文档 发布时间: 20241014
...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_DrawShapes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage...
来源: Laya2.0_示例 发布时间: 20241119
API DocumentationAll Packages | All Classes | Index | Frames No Frames TileTexSetProperties | Methods Packagelaya.mapClasspublic class TileTexSetInheritanceTileTexSet Object 此类是子纹理类,也包括同类动画的管理 TiledMap会把纹理分割成无数子纹理,也可以把其...
来源: laya_api 发布时间: 20170929
API DocumentationAll Packages | All Classes | Index | Frames No Frames ScriptProperties | Methods | Events Packagelaya.d3.componentClasspublic class ScriptInheritanceScript Component3D EventDispatcher Object Script 类用于创建脚本的父类。 Public Properties Hide Inherited Public P...
来源: laya_api 发布时间: 20170929
API DocumentationAll Packages | All Classes | Index | Frames No Frames CircleColliderProperties | Methods Packagelaya.physicsClasspublic class CircleColliderInheritanceCircleCollider ColliderBase Component Object 2D圆形碰撞体 Public Properties Hide Inherited Public Properties Show Inhe...
来源: Laya2.0_api 发布时间: 20190513
...lobals "laya/d3/physics/shape/CompoundColliderShape" CompoundColliderShape Class CompoundColliderShape CompoundColliderShape 类用于创建组合碰撞器。 Hierarchy ColliderShape CompoundColliderShape Implements IClone Index Constructors constructor Properties needsCustomCollisionCallback SHAPEO...
来源: Laya3.0_api 发布时间: 20231115
...nherited Externals Only exported Menu Globals "laya/d3/math/Bounds" Bounds Class Bounds Bounds 类用于创建包围体。 Hierarchy Bounds Implements IClone Index Constructors constructor Accessors max min Methods calculateBoundsintersection clone cloneTo getBoundBox getCenter getCorners getExtent ...
来源: Laya3.0_api 发布时间: 20231115
API DocumentationAll Packages | All Classes | Index | Frames No Frames VertexElementFormatMethods | Constants Packagelaya.d3.graphicsClasspublic class VertexElementFormatInheritanceVertexElementFormat Object ... Public Methods MethodDefined By getElementInfos(element:String):Array[stat...
来源: Laya2.0_api 发布时间: 20190513
...ll Inherited Externals Only exported Menu Globals "laya/media/Sound" Sound Class Sound Sound 类是用来播放控制声音的类。 引擎默认有两套声音方案,优先使用WebAudio播放声音,如果WebAudio不可用,则用H5Audio播放,H5Audio在部分机器上有兼容问题(比...
来源: Laya3.0_api 发布时间: 20231115
...nly exported Menu Globals "laya/d3/graphics/VertexBuffer3D" VertexBuffer3D Class VertexBuffer3D 请使用LayaGL.RenderOBJCreate.createIndexBuffer3D来创建 VertexBuffer3D 类用于创建顶点缓冲。 Hierarchy VertexBuffer VertexBuffer3D NativeVertexBuffer3D Index Constructors constructor Propert...
来源: Laya3.0_api 发布时间: 20231115