umasteeringgroup / UMA

Unity Multipurpose Avatar
MIT License
726 stars 167 forks source link

Event Nodes #412

Open Jaimi opened 3 months ago

Jaimi commented 3 months ago

Event Nodes Event nodes take in an object, a string, and have a constant "EventID" string that can be used to identify an event. The event can return the passed in object, or it can make a decision and return a different object. The returned object is then output to the next node. If the event returns NULL, then the original object is output. Event nodes allow you to make decisions in code, and substitute objects with others as needed. These events only run during recipe generation That means, to do the decisioning, you will need to call BuildRecipe on the character. BuildRecipe is called automatically in the editor, and the first time the character is built. Otherwise, you will need to call it manually if you update the wardrobe.

MeshEvent: An event node that passes a SlotData OverlayEvent: An event node that passes an OverlayData ColorEvent: An event node that passes an OverlayColorData StringEvent: An event node that passes a string IntEvent: An event that passes an integer ObjectEvent: An event that passes a generic object. Note: it is the responsibility of the coder to check types.