UnityEditor.MemoryTreeList.Clamp C# (CSharp) 메소드

Clamp() 개인적인 정적인 메소드

private static Clamp ( float value, float min, float max ) : float
value float
min float
max float
리턴 float
        private static float Clamp(float value, float min, float max)
        {
            return ((value >= min) ? ((value <= max) ? value : max) : min);
        }

Usage Example

예제 #1
0
        protected void EnsureVisible()
        {
            int num = 0;

            this.RecursiveFindSelected(this.m_Root, ref num);
            this.m_ScrollPosition.y = MemoryTreeList.Clamp(this.m_ScrollPosition.y, this.m_SelectionOffset - this.m_VisibleHeight, this.m_SelectionOffset - 16f);
        }