Search Unity

Signal Receiver functions

Discussion in 'Timeline' started by astyles_imb, Nov 12, 2019.

  1. astyles_imb

    astyles_imb

    Joined:
    Nov 12, 2019
    Posts:
    5
    Hi,

    I'm able to add Reactions to a Signal Receiver that take a simple type - string or - int - and specify that value in the inspector, and have it get through to the function. YES!

    When I try using an enum though, I can no longer use that function in the Signal Receiver; its not selectable from the drop down.

    eg,

    Code (CSharp):
    1.     public enum MyType
    2.     {
    3.         None,
    4.         Something
    5.     }
    6.  
    7. public void MyReaction(MyType vaue) { ... } <--- cannot use this
    Any ideas?
     
  2. astyles_imb

    astyles_imb

    Joined:
    Nov 12, 2019
    Posts:
    5
    Hi, any thoughts on this anyone?
     
  3. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516