Search Unity

Object with logic in ScriptableObject

Discussion in 'Scripting' started by A-Zhdanov, Nov 11, 2016.

  1. A-Zhdanov

    A-Zhdanov

    Joined:
    Sep 26, 2015
    Posts:
    3
    Hello!
    It is correct to hold object with logic and behaviour in ScriptableObject?
     
  2. Suddoha

    Suddoha

    Joined:
    Nov 9, 2013
    Posts:
    2,824
    That's a really generic question...
    Could you go into some detail?

    In the end they're just a class. They're usually good to hold data that needs to be accessed from several different objects, but that doesn't mean you shouldn't have any logic there at all...

    As you see, the answer is as generic as your question. What do you want to do with it?