Skip to content

Instantly share code, notes, and snippets.

View SoftwareGuy's full-sized avatar

Coburn SoftwareGuy

View GitHub Profile
@SoftwareGuy
SoftwareGuy / EditorFontSize.cs
Created November 3, 2022 01:39 — forked from nukadelic/EditorFontSize.cs
Unity Editor Font Size Changer -- EditorStyles
#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
public class EditorFontSize : EditorWindow
{
[MenuItem("Window/Editor Font Size")]
@SoftwareGuy
SoftwareGuy / Platform_AndroidTV.cs
Created December 8, 2023 10:49 — forked from ChrisNZL/Platform_AndroidTV.cs
Detects Android TV using Unity.
using UnityEngine;
// DERIVED FROM https://stewmcc.com/post/check-for-android-tv-in-unity/
public class Platform_AndroidTV : MonoBehaviour {
#if UNITY_ANDROID
sbyte isAndroidTV = -1; // -1 == not checked yet; 0 == false; 1 == true