ATTENTION! The process of updating WiKi to version Eco 10.x has begun. Those wishing to participate can find out more Information on our ECO Contribution Wiki Discord.
From April 26 to May 12, errors may occur in the Wiki, as we will be carrying out a major update to the information processing modules.

Animation

From Eco - English Wiki
Revision as of 19:14, 4 July 2021 by Redwyre (talk | contribs) (Created page with "{{ModdingOutdated}} == World Object States == All world objects include these built-in states: * Using - Someone is currently interacting with the object (UI is open) * Enabl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Warning: This content is outdated.

World Object States[edit | edit source]

All world objects include these built-in states:

  • Using - Someone is currently interacting with the object (UI is open)
  • Enabled - The object can operate but might not be 'operating' (typically determined by on/off and room/power requirements)
  • Operating - currently doing something (Crafting, generating electricity etc)

Animation Controller (7.2+)[edit | edit source]

Animation Controllers in World Objects now automatically get their parameters bound to WorldObject events if named correctly. Here is a list of available names:

  • World Object States
    • bool - Using, Enabled, Operating
    • trigger - OnEnabled, OnDisabled, OnEnableOperating, OnDisableOperating, OnEnableUsing, OnDisableUsing
  • World Object Custom States - a bool animated state named "Example" would get bound to:
    • Example (bool) - stays in sync with the animated state
    • OnEnableExample (trigger) - fires when changing false to true
    • OnDisableExample (trigger) - fires when changing true to false
  • World Object Custom States - a float animated state named "Example" would get bound to:
    • Example (float) - stays in sync with the float

Unity Events[edit | edit source]