コード例 #1
0
 void Start()
 {
     _parentEntity = gameObject.FindInParents<EntityElement>();
     _inputField = GetComponent<InputField>();
     InputField.SubmitEvent submitEvent = new InputField.SubmitEvent();
     submitEvent.AddListener(EditDone);
     _inputField.onEndEdit = submitEvent;
 }
コード例 #2
0
 public void SetData(EntityElement entityElement, string attrName)
 {
     _label = GetComponent<Text>();
     ParentEntityName = entityElement.Name;
     AttributeName = attrName;
     _label.text = attrName;
     parent = entityElement;
 }