Skip to content

Instantly share code, notes, and snippets.

View korinVR's full-sized avatar
🥽
VR

Katsuomi Kobayashi korinVR

🥽
VR
View GitHub Profile
@korinVR
korinVR / XRPluginManagementSettings.cs
Last active May 20, 2024 15:38
Enable and disable XR Plug-in Management plugins
using System;
using UnityEditor;
using UnityEditor.XR.Management;
using UnityEditor.XR.Management.Metadata;
using UnityEngine;
namespace FrameSynthesis.XR
{
// ref. https://docs.unity3d.com/Packages/com.unity.xr.management@4.1/manual/EndUser.html
public static class XRPluginManagementSettings
@korinVR
korinVR / VRInputModule.cs
Last active December 7, 2020 00:36
Minimum VR EventSystem components
using System.Collections.Generic;
using UnityEngine.EventSystems;
namespace FrameSynthesis.XR.UnityUI
{
public class VRInputModule : BaseInputModule
{
readonly List<RaycastResult> raycastResults = new List<RaycastResult>();
public override void Process()
@korinVR
korinVR / SceneMenuGenerator.cs
Created April 20, 2022 00:54
Unity: Generate a quick scene-opening menu from the scene list of the Build Settings
using System.IO;
using System.Text;
using UnityEditor;
using UnityEngine;
// Generate a quick scene-opening menu from the scene list of the Build Settings.
// Usage: Open "Scene -> Generate Scene Menu..."
public static class SceneMenuGenerator
{
// Customize it appropriately.