I am making a phrase sport in Unity.
I’ve made two Scriptable Objects. The primary one is for FeemData.
utilizing System;
utilizing System.Collections;
utilizing System.Collections.Generic;
utilizing UnityEngine;
[CreateAssetMenu(fileName = "New FeemData", menuName = "Feem Data", order = 51)]
public class FeemData : ScriptableObject
{
[SerializeField]
public string feemName;
[SerializeField]
public string Neem;
[SerializeField]
public Int32 neemNumber;
[SerializeField]
public string coreGrapheme;
[SerializeField]
public string shadowString;
}
And the second is for NeemData
utilizing System.Collections;
utilizing System.Collections.Generic;
utilizing UnityEngine;
[CreateAssetMenu(fileName = "New NeemData", menuName = "Neem Data", order = 51)]
public class NeemData : ScriptableObject
{
[SerializeField]
public string neemName;
[SerializeField]
public string feemText;
[SerializeField]
public Colour feemColor;
}
Proper now, the NeemData Scriptable Object has a string discipline known as feemText.
Essentially, every Neem can have a number of Feems. I might love to show the feemText right into a Record of Feems, in order that I can drag and drop the related Feems into the Neem within the Inspector.
Any ideas on the right way to edit the NeemData Scriptable Object to incorporate a Record of Scriptable Objects (on this case, the FeemData)? Thanks!!