Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is there any way to pass long value from editor?

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

  1. GiftedMamba

    GiftedMamba

    Joined:
    Feb 25, 2017
    Posts:
    46
    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. 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. GiftedMamba

    GiftedMamba

    Joined:
    Feb 25, 2017
    Posts:
    46
    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