Blink Object

In this tutorial we will create a simple blinking object using StateMachine.

  1. Create new GameObject and add uNodeRuntime component on it.
  2. Open uNode Editor and Add new EventNode
  3. Add State with name “On” and add OnTimerElapsed transition on it.
  4. Edit State by double click on the node and add OnEnter Event.
  5. Make new node to disable/enable GameObject by dragging Cube to the graph > click on Get > find SetActive(bool) method > left click to add new node.
  6. Check the toggle button.
  7. Connect OnEnter Event to the node.
  8. Goto root graph and duplicate the State node and rename it to “Off”
  9. Edit State and uncheck the toggle button.
  10. Play the game.
Was this helpful to you?