Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. mainMenu.cs:
  2. void Awake()
  3. {
  4. if (SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.Direct3D11 || SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.Direct3D12)
  5. {
  6. gameController.dx11 = true;
  7. }
  8. }
  9.  
  10.  
  11. using System.Collections;
  12. using System.Collections.Generic;
  13. using UnityEngine;
  14.  
  15. public class DirectXHider : MonoBehaviour {
  16.  
  17. // Use this for initialization
  18. private void Awake()
  19. {
  20. if(!gameController.dx11)
  21. {
  22. gameObject.SetActive(false);
  23. }
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement