Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Loader<Object3D>
    • OBJModelsLoader

Index

Constructors

constructor

Properties

__agentConstructor

__agentConstructor: Function

Protected library

library: Map<string, Object3D> = new Map<string, T>()

loaderType

loaderType: string = OBJ_MODEL

Protected resourcesRaw

resourcesRaw: Array<ResourceRaw> = []

Methods

addResources

getResource

  • getResource<C>(name: string, _throwWarning?: boolean): C
  • USE THIS FUNCTION TO GET READY RESOURCES

    Type parameters

    • C: Object3D

    Parameters

    • name: string

      string Resource name to get

    • Default value _throwWarning: boolean = true

      boolean

    Returns C

    resource with the provided name, or undefined if none was found

load

  • load(): Promise<void>

Protected resourceToPromise

  • resourceToPromise(url: string, name: string): Promise<Object3D>

Protected setResource

  • setResource(name: string, resource: Object3D): void

Legend

  • Namespace
  • Object literal
  • Variable
  • Function
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Inherited property
  • Inherited method
  • Enumeration
  • Interface
  • Protected method

Generated using TypeDoc