Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Store references in SO or a Class

Discussion in 'Getting Started' started by monsterrungame, Apr 24, 2021.

  1. monsterrungame

    monsterrungame

    Joined:
    Sep 27, 2019
    Posts:
    15
    Hi guys.
    Which solution will be better (memory usage) to store e.g. Audio Clips references?

    1. In scriptable object
    2. In a class with [SerializeField]

    Thanks in advance
     
  2. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    Memory usage would either be exactly the same or hardly too different to worry about.

    Use whatever works for you.
     
  3. monsterrungame

    monsterrungame

    Joined:
    Sep 27, 2019
    Posts:
    15