Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mainMenu.cs:
- void Awake()
- {
- if (SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.Direct3D11 || SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.Direct3D12)
- {
- gameController.dx11 = true;
- }
- }
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class DirectXHider : MonoBehaviour {
- // Use this for initialization
- private void Awake()
- {
- if(!gameController.dx11)
- {
- gameObject.SetActive(false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement