Gimmick

A gimmick reads values from a state and reflects them on items, players, or other GameObjects.

There are three types of gimmicks:

  • Item gimmicks: Set on an item to modify its state
    • The component name is XXXXItemGimmick
  • Player gimmicks: Set on any GameObject to modify the state of each player
    • The component name is XXXXPlayerGimmick
  • Other gimmicks: Directly modify the state of Unity objects or components in the space, such as GameObjects, AudioSources, Animators, or Timelines

For the list, see Gimmick components.

Common gimmick settings

Each gimmick component has the following settings, where you can configure which state to read from using Target and Key.

List of Targets:

  • Item states
    • This: The item state of the item where the gimmick is set (item gimmick only)
    • Item: The item state of the specified item (other gimmicks only)
  • Player states
    • Player: The player state of each player (player gimmick only)
  • Global state
    • Global: The global state

Some gimmicks allow you to specify LocalPlayer. This is useful in cases where it’s natural for the state of a GameObject to differ for each player, such as with LocalPlayerUI. LocalPlayer reads the player state.