Factory for assets creating and their data uploading.

Hierarchy

  • AssetManager

Methods

  • creates AudioTrack

    Parameters

    • name: string

      audio track name

    Returns AudioTrack

    created audio track (AudioTrack).

  • creates face

    Parameters

    • name: string

      face name

    Returns Face

    created face (face).

  • creates material

    Parameters

    • name: string

      material name

    Returns Material

    created material (material).

  • creates mesh

    Parameters

    • name: string

      mesh name

    Returns Mesh

    created mesh (mesh).

  • creates morphing

    Parameters

    • name: string

      morphing name

    Returns Morphing

    created morphing (morphing).

  • creates render target

    Parameters

    • name: string

      render target name

    Returns RenderTarget

    created render target (RenderTarget).

  • Find audio track by specified name. Returns null if audio track not found.

    Parameters

    • name: string

      audio track name.

    Returns AudioTrack

  • Find face by specified name. Returns null if face not found.

    Parameters

    • name: string

      face name.

    Returns Face

  • Find Image by specified name. Returns null if Image not found.

    Parameters

    • name: string

      Image name.

    Returns BanubaSDK.Image

  • Find material by specified name. Returns null if material not found.

    Parameters

    • name: string

      material name.

    Returns Material

  • Find mesh by specified name. Returns null if mesh not found.

    Parameters

    • name: string

      mesh name.

    Returns Mesh

  • Find morph by specified name. Returns null if morph not found.

    Parameters

    • name: string

      morph name.

    Returns Morphing

  • Find render target by specified name. Returns null if render target not found.

    Parameters

    • name: string

      render target name.

    Returns RenderTarget

  • upload material shaders

    Parameters

    • material: Material

      material

    • fileName: string

      shaders to upload

    Returns void

  • upload mesh file

    Parameters

    • mesh: Mesh

      mesh

    • fileName: string

      file to upload

    Returns void