コード例 #1
0
        private void OnResize(ExpandingInputField arg0, float newSize)
        {
            var oSize = syncWith[arg0];

            syncWith[arg0] = newSize;
            if (oldSize == oSize || newSize > oldSize)
            {
                UpdateSizes();
            }
        }
コード例 #2
0
 public void Remove(ExpandingInputField oldSyncTarget)
 {
     syncWith.Remove(oldSyncTarget);
     oldSyncTarget.onResize.RemoveListener(OnResize);
     UpdateSizes();
 }
コード例 #3
0
 public void Add(ExpandingInputField newSyncTarget)
 {
     syncWith.Add(newSyncTarget, 0);
     newSyncTarget.onResize.AddListener(OnResize);
     UpdateSizes();
 }