mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-22 13:19:33 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
27 lines
375 B
C#
27 lines
375 B
C#
using Sandbox.VR;
|
|
|
|
namespace Editor;
|
|
|
|
public static partial class EditorUtility
|
|
{
|
|
public class VR
|
|
{
|
|
public static bool Enabled
|
|
{
|
|
get => VRSystem.IsActive;
|
|
set
|
|
{
|
|
if ( value == VRSystem.IsActive )
|
|
return;
|
|
|
|
if ( value )
|
|
VRSystem.Init();
|
|
else
|
|
VRSystem.Disable();
|
|
}
|
|
}
|
|
|
|
public static bool HasHeadset => VRSystem.HasHeadset;
|
|
}
|
|
}
|