コード例 #1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            BetterInputField obj = target as BetterInputField;

            helper.DrawGui(serializedObject, obj);

            var prop = serializedObject.FindProperty("additionalPlaceholders");

            EditorGuiUtils.DrawLayoutList("Additional Placeholders",
                                          obj.AdditionalPlaceholders, prop, ref phCount,
                                          createCallback: null,
                                          drawItemCallback: (item, p) =>
            {
                EditorGUILayout.PropertyField(p);
                serializedObject.ApplyModifiedProperties();
            }
                                          );

            serializedObject.ApplyModifiedProperties();
        }
コード例 #2
0
 private void OnEnable()
 {
     _inputField = (BetterInputField)target;
 }