Search Unity

Is there any way to pass long value from editor?

Discussion in 'Editor & General Support' started by Last_Imba, Jul 11, 2019.

  1. Last_Imba

    Last_Imba

    Joined:
    Feb 25, 2017
    Posts:
    20
    Hi.
    Well, i have a function in a script:

    Code (CSharp):
    1. public void SomeFunc(int value){
    2. }
    I can call this function in the editor

    Now i am changing the signature of the fucntion

    Code (CSharp):
    1. public void SomeFunc(long value){
    2. }
    And starting from this moment the editor can't call this function.
    Is it true? Is there no way to pass a long value in editor?
     
  2. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    3,883
    What do you exactly mean "you can call this function in the editor"? From where, how, with what parameter? Also what do you mean when you say you "cannot call the function with long parameter in the editor"? What's the problem and what are you trying to do?
     
  3. Last_Imba

    Last_Imba

    Joined:
    Feb 25, 2017
    Posts:
    20
    I mean if I have an int value in a function and a unity event in the editor, then I will see this function in the list of available functions. If I have a long value then function is inaccessible.
     
    Last edited: Jul 12, 2019 at 11:16 AM