Search Unity

Preset in game ?

Discussion in 'General Discussion' started by BlackMantis, May 10, 2018.

  1. BlackMantis

    BlackMantis

    Joined:
    Feb 7, 2010
    Posts:
    1,475
    Are presets usable in game or made for edit mode only?
     
  2. izhem93

    izhem93

    Joined:
    Nov 19, 2016
    Posts:
    1
    Interested in answer too. It would be the great feature if we can place Preset in ScriptableObject config and then apply some of them on instantiated object in runtime.
     
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Preset is part of the UnityEditor namespace, so its not available at runtime.

    However you can do the same thing with JsonUtility.