Hello, I’m trying to set a valuable within a ScriptableObject.
I’ve got the data of a tree through a script
ScriptableObject Data = SpawnedTrees.GetComponent<Tree>().data;
the ScriptableObject/Data that i get from the tree contains a float Unique ID that i want to change, Would it be possible to edit this?
I’ve also read through Unity - Scripting API: ScriptableObject
that wasn’t any help.
Any help is always appreciated thanks for reading.
You should create a class that inherits from ScriptableObject and put there your data fields , then you need to create a ScriptableObject instance for using it.