Tree problem 'uniqueID' is not a member of 'UnityEngine.ScriptableObject'.

‘uniqueID’ is not a member of ‘UnityEngine.ScriptableObject’.

Im trying to access TreeEditor information, It must be something simple im missing, but everyway i try to change this i get different errors, if someone can help me with that i will be very gratefull(im learning):

(Java)

var arv : Tree = gameObject.GetComponent("tree");
 Debug.Log(String.Format("unique ID = {0}", arv.data.uniqueID));

i’ll just leave this here…

you probably need to cast arv.data to a different type (TreeEditor.TreeData)