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

Possible to make an variable persistent?

Discussion in 'Immediate Mode GUI (IMGUI)' started by TiToMoskito, Nov 11, 2017.

  1. TiToMoskito

    TiToMoskito

    Joined:
    Jan 28, 2014
    Posts:
    66
    I made a Custom Editor script for an Script, were an Button will be displayed an an label.
    With the button, you can create an GUID for the Script and the label show's the generated GUID.

    But when i press play, the generated GUID gets lost and all prefabs with the specific script have no GUID anymore.

    How can i generate the GUID for the script and make is persistant?

    #Edit: Please delete, solved it!
     
    Last edited: Nov 11, 2017