public override void DeserializeSpecialData(string key, string value) { switch (key) { case "fstp": currentType = (FaceSignType)int.Parse(value); UpdateIcon(); break; } }
public override void DrawLowerPropertyBox() { GUI.color = Color.white; EditorGUI.BeginChangeCheck(); //currentType = (ScreenPosType)EditorGUI.EnumPopup( lowerRect, currentType ); currentType = (FaceSignType)UndoableEnumPopupNamed(lowerRect, (int)currentType, faceSignTypeStr, "switch face sign type"); if (EditorGUI.EndChangeCheck()) { UpdateIcon(); OnUpdateNode(); } }