UnityEngine.GUIStyle.Internal_DrawCursor C# (CSharp) Method

Internal_DrawCursor() private static method

private static Internal_DrawCursor ( IntPtr target, Rect position, GUIContent content, int pos, Color cursorColor ) : void
target System.IntPtr
position Rect
content GUIContent
pos int
cursorColor Color
return void
        private static void Internal_DrawCursor(IntPtr target, Rect position, GUIContent content, int pos, Color cursorColor)
        {
            INTERNAL_CALL_Internal_DrawCursor(target, ref position, content, pos, ref cursorColor);
        }

Usage Example

コード例 #1
0
ファイル: GUIStyle.cs プロジェクト: zuohu/UnityDecompiled
        public void DrawCursor(Rect position, GUIContent content, int controlID, int Character)
        {
            Event current = Event.current;

            if (current.type == EventType.Repaint)
            {
                Color cursorColor      = new Color(0f, 0f, 0f, 0f);
                float cursorFlashSpeed = GUI.skin.settings.cursorFlashSpeed;
                float num = (Time.realtimeSinceStartup - GUIStyle.Internal_GetCursorFlashOffset()) % cursorFlashSpeed / cursorFlashSpeed;
                if (cursorFlashSpeed == 0f || num < 0.5f)
                {
                    cursorColor = GUI.skin.settings.cursorColor;
                }
                GUIStyle.Internal_DrawCursor(this.m_Ptr, position, content, Character, cursorColor);
            }
        }