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

How do I change value from a Custom Editor using a script.

Discussion in 'Scripting' started by hizral, Aug 9, 2018.

  1. hizral

    hizral

    Joined:
    Apr 27, 2010
    Posts:
    568
    Hello there,

    Not sure if this question have been asked before but I could not find any post about it. So here goes.

    From the title above I would like to know how do you change a float value from a custom editor script using my own script.

    I'm currently playing around with water sample from unity standard and would like to change the "Per Vertex" float value using my own script, but it seem I cannot access the value and change it.

    How do I get the value and run it on my own script.

    thank you
     
  2. Googliee

    Googliee

    Joined:
    Jun 10, 2017
    Posts:
    1
    Did you tried static variables ?