Class MaterialSection

The MaterialSection class represents a named material section. It is typically constructed by a Renderable and used to assign a Material resource to a specific section of the Renderable.

Hierarchy

  • FrameworkObject
    • MaterialSection

Constructors

Accessors

Constructors

  • Parameters

    • OptionalisInternalConstructor: boolean

    Returns MaterialSection

Accessors

  • get material(): Material
  • Assigns the material to the section and notifies the owner of the change.

    Returns Material

  • set material(value): void
  • Assigns the material to the section and notifies the owner of the change.

    Parameters

    • value: Material

    Returns void

  • get materialHandle(): ResourceHandle<Material>
  • Assigns the material to the section and notifies the owner of the change.

    Returns ResourceHandle<Material>

  • set materialHandle(value): void
  • Parameters

    Returns void

  • get name(): string
  • Gets the name of this instance.

    Returns string

  • set name(value): void
  • Parameters

    • value: string

    Returns void