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
using System; | |
using UnityEditor; | |
using UnityEditor.XR.Management; | |
using UnityEditor.XR.Management.Metadata; | |
using UnityEngine; | |
namespace FrameSynthesis.XR | |
{ | |
// ref. https://docs.unity3d.com/Packages/[email protected]/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
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
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 = () => { |
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
<!-- Assets/WebGLTemplates/FullWindow あたりに格納して Player Settings で選択 --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>%UNITY_WEB_NAME%</title> | |
<script src="%UNITY_WEBGL_LOADER_URL%"></script> | |
<script> | |
const gameInstance = UnityLoader.instantiate("gameContainer", "%UNITY_WEBGL_BUILD_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
using UnityEngine; | |
using UnityEngine.XR; | |
namespace HTC.UnityPlugin.StereoRendering | |
{ | |
public class UnityXRParamFactory : IDeviceParamFactory | |
{ | |
public int GetRenderWidth() | |
{ | |
return XRSettings.eyeTextureWidth; |
NewerOlder