A native asset that provides the target for a camera to provide its output to. Import with Editor.Model.AssetManager.createNativeAsset.

interface RenderTarget {
    antialiasingMode: AntialiasingMode;
    clearColor: vec4;
    clearColorOption: Editor.Assets.ClearColorOption;
    depthBuffer: DepthBufferStrategy;
    fileMeta: AssetImportMetadata;
    id: Uuid;
    inputTexture: Editor.Assets.Texture;
    msaaStrategy: MSAAStrategy;
    name: string;
    resolution: Size;
    type: string;
    useScreenResolution: boolean;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

antialiasingMode: AntialiasingMode
clearColor: vec4
clearColorOption: Editor.Assets.ClearColorOption
depthBuffer: DepthBufferStrategy
id: Uuid

The unique id of the entity.

inputTexture: Editor.Assets.Texture
msaaStrategy: MSAAStrategy
name: string

The name of the asset.

resolution: Size
type: string

The entity's type.

useScreenResolution: boolean

Methods

  • Beta

    Parameters

    • type: string

    Returns boolean

  • Beta

    Swap this entity for another one based on a JSON of the current entity id and the target entity id.

    Parameters

    • referenceMapping: object

    Returns void