- Home /
Question by
eitanwass · Oct 24, 2016 at 11:00 AM ·
objectcustom editorcustom-inspectortypeobjectfield
'type mismatch' at custom inspector .asset
Hello human beings!
I want to save some variables through a .asset custom inspector, and it works. except for when it comes to objects, gameobject, or transforms... When i assign the said type in the inspector the message 'type mismatch' is appeared where i should see the type i put in.
code:
logicDB.logics[i].output = EditorGUILayout.ObjectField(logicDB.logics[i].output, typeof(Object), true);
public class Logic {
[SerializeField]public string name = "Name";
[SerializeField]public int type;
[SerializeField]public Object input;
[SerializeField]public Object output;
[SerializeField]public float timeDelay;
}
Please help me if you see this. Bests, Ethan
Comment
Your answer
Follow this Question
Related Questions
Question About EditorGUILayout.BeginFadeGroup 1 Answer
Questions Regarding Images in Custom Inspector/Editor 1 Answer
Create a custom prefab stage 0 Answers
Responsive Editor UI Button with custom style | How to remove GUIStyle.hover delay 0 Answers
How can i get SerializedProperty from UnityEvent which in List. Sorry for my Eng. 2 Answers