Options
All
  • Public
  • Public/Protected
  • All
Menu

Module reactHooks

Index

Functions

useStateFromComponentMap

  • useStateFromComponentMap<TShape>(entity: Entity, ComponentMap: ShapeOf<TShape, ComponentConstructor<Component<any>>>, includeRemoved?: boolean): [ShapeOf<TShape, any>, () => void]
  • Use only for state/components that change infrequently, or which alter the structure of the scene graph. For animations, pass a ref and mutate the THREE objects directly.

    Type parameters

    • TShape: IShape

    Parameters

    Returns [ShapeOf<TShape, any>, () => void]

Generated using TypeDoc