This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class KonamiCommand | |
{ | |
readonly OVRInput.RawButton[] sequenceButtons = | |
{ | |
OVRInput.RawButton.LThumbstickUp, | |
OVRInput.RawButton.LThumbstickUp, | |
OVRInput.RawButton.LThumbstickDown, | |
OVRInput.RawButton.LThumbstickDown, | |
OVRInput.RawButton.LThumbstickLeft, | |
OVRInput.RawButton.LThumbstickRight, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
import webbrowser | |
class OpenUrlCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
s = self.view.sel()[0] | |
# Expand selection to possible URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def unity = 'C:\\Program Files\\Unity\\Hub\\Editor\\2019.3.0f6\\Editor\\Unity.exe' | |
pipeline { | |
agent any | |
triggers { | |
pollSCM('H/5 * * * *') | |
} | |
stages { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.XR; | |
namespace HTC.UnityPlugin.StereoRendering | |
{ | |
public class UnityXRParamFactory : IDeviceParamFactory | |
{ | |
public int GetRenderWidth() | |
{ | |
return XRSettings.eyeTextureWidth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as PIXI from 'pixi.js' | |
import backgroundImageURL from '/assets/images/background.jpg' | |
const application = new PIXI.Application() | |
const screenW = 1024 | |
const screenH = 1024 | |
const resize = () => { |
NewerOlder