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

Prevent ScriptableObject from saving at run-time

Discussion in 'Scripting' started by y3ht72ety812yg8912tg, Apr 19, 2021.

  1. y3ht72ety812yg8912tg

    y3ht72ety812yg8912tg

    Joined:
    Jan 6, 2021
    Posts:
    14
    Is there anyway I can prevent the ScriptableObject values to change at run-time without having to Instantiate it?

    I have a couple of SO that are referenced inside some objects, I wanna change the values inside the SO since I'm going to save it to disk later.

    Anyway I can prevent the SO to save the values or maybe I can instantiate the SO and replace all references?