public bool IsVisible()
 {
     if (m_ByPass == null)
     {
         m_ByPass = new DynamicValue <bool>(byPass, m_SerializedProperty);
     }
     m_ByPass.Update(m_SerializedProperty);
     if (!string.IsNullOrEmpty(byPass))
     {
         if (m_ByPass.GetValue())
         {
             return(false);
         }
     }
     return(visible);
 }
Пример #2
0
        private void Update()
        {
            if (sizeGetter == null)
            {
                return;
            }
            if (m_DynamicSize == null)
            {
                m_DynamicSize = new DynamicValue <Vector2>(sizeGetter, m_SerializedProperty, new Vector2(width, height));
            }
            m_DynamicSize.Update(m_SerializedProperty);
            var size = m_DynamicSize.GetValue();

            width  = size.x;
            height = size.y;
        }
Пример #3
0
 protected DynamicValue <bool> GetCondition()
 {
     if (m_DynamicCondition == null)
     {
         if (m_Static == null)
         {
             m_DynamicCondition = new DynamicValue <bool>(m_Condition, m_SerializedProperty);
         }
         else
         {
             m_DynamicCondition = new DynamicValue <bool>(m_Static.Value);
         }
     }
     m_DynamicCondition.Update(m_SerializedProperty);
     return(m_DynamicCondition);
 }
Пример #4
0
 private void Update()
 {
     if (m_DragAction == null)
     {
         m_DragAction = new DynamicAction(drag, m_SerializedProperty);
     }
     if (m_DropAccept == null)
     {
         m_DropAccept = new DynamicValue <bool>(accept, m_SerializedProperty);
     }
     if (m_DropAction == null)
     {
         m_DropAction = new DynamicAction(drop, m_SerializedProperty);
     }
     m_DragAction.Update(m_SerializedProperty);
     m_DropAccept.Update(m_SerializedProperty);
     m_DropAction.Update(m_SerializedProperty);
 }
 protected UnityEngine.Object[] GetFailObjects(DynamicValue <UnityEngine.Object> objectReference)
 {
     return(objectReference.GetValues().Where(obj => obj != null && !OnCheckObject(obj)).Distinct().ToArray());
 }