UnityEditor.Unsupported.SetAllowCursorLock C# (CSharp) Method

SetAllowCursorLock() private method

private SetAllowCursorLock ( bool allow ) : void
allow bool
return void
        public static extern void SetAllowCursorLock(bool allow);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#1
0
 private void OnLostFocus()
 {
     if (!EditorApplicationLayout.IsInitializingPlaymodeLayout())
     {
         Unsupported.SetAllowCursorLock(false);
         Unsupported.SetAllowCursorHide(false);
     }
     InternalEditorUtility.OnGameViewFocus(false);
 }
All Usage Examples Of UnityEditor.Unsupported::SetAllowCursorLock