Scriptable Objects not present in Built Version
Hi!
I'm working on a game where the palette of the level changes depending on the music that is playing. As such, I've created a scriptable object called "Palette" that holds a bin of 11 colors.
[CreateAssetMenu(fileName = "new Palette",menuName ="Palettes/Palette")]
public class Pallette : ScriptableObject
{
public Color[] Colors;
private void OnEnable()
{
hideFlags = HideFlags.DontUnloadUnusedAsset;
}
}
Simple. The Palletes Modify Numbered materials in the scene using this PaletteManager, which just uses the name of the track playing to change the palette.
The problem is, however, that the palettes do not seem to carry over into the built versions of the game. The Palette management system, Varying palettes, etc. all work int he editor, but when I go to build, the built version does not swap palettes, and in the makeshift runtime console I have, it says that the palettes are null.
Answer by UltraSkull · Nov 10, 2018 at 09:43 PM
I Discovered the Issue. Apparently, I Added an extra L in the name of the file, causing some internal issue.
Your answer
Follow this Question
Related Questions
Custom inspector - How to serialize scene objects in ScriptableObject? 0 Answers
type mismatch on texture 2D inside scriptable object 0 Answers
Changing ScriptableObject to another during runtime crashes UnityEditor 0 Answers
Saving reference to a ScriptableObject with JsonUtility 1 Answer
Why "the associated script can not be loaded" for some Scriptable Objects? 1 Answer