Skip to content

Instantly share code, notes, and snippets.

arun02139

Block or report user

Report or block arun02139

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View snippet of my integration code
if (obj.state.source.handedness == InteractionSourceHandedness.Right)
{
_rHandIKTarget.position = controllerState.GripPosition;
var offset = controllerState.GripRotation;
offset = new Quaternion(0, 0, offset.z, 0);
_rHandIKTarget.rotation = controllerState.GripRotation * offset;
}
View WinMRIKSetup.cs
using UnityEngine;
using PlusOne.SDK;
using PlusOne.SDK.Input.Interaction;
using UnityEngine.XR.WSA.Input;
using System.Collections.Generic;
public class WinMRIKSetup : MonoBehaviour
{
public Transform dummyRoot = null;
public bool HeadIKOn = false;
View FPSUI.cs
using UnityEngine;
using UnityEngine.UI;
// http://catlikecoding.com/unity/tutorials/frames-per-second/ (LINK)
public class FPSUI : UIBase
{
static string[] stringsFrom00To99 = {
"00", "01", "02", "03", "04", "05", "06", "07", "08", "09",
"10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
"20", "21", "22", "23", "24", "25", "26", "27", "28", "29",
@arun02139
arun02139 / HandController.cs
Created Aug 7, 2017
Failing to load simple Asset Bundle on Android
View HandController.cs
// NOTE: the oculus-gear-specific parts of this script were copied and modified
// from OVRGearVrController.cs (Oculus Utilities for Unity 5 v1.1.5)
using UnityEngine;
using UnityEngine.Assertions;
using System.Collections;
using System.IO;
using PlusOne.SDK.Shared;
using HoloToolkit.Unity; // TODO: the gaze manager code should be in our shared namespace..
View Unit.cs
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine.Networking;
using UnityEngine.Events;
using UnityEngine.Assertions;
using Random = UnityEngine.Random;
using System.Linq;
View Player.cs
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Assertions;
using UnityEngine.Networking;
using System.Collections;
using System.Collections.Generic;
using Prototype.NetworkLobby;
public class Player : NetworkBehaviour//, IPlayer
{
View Battle.cs
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.Assertions;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Networking;
using Prototype.NetworkLobby;
using System;
public enum BattleSMState { None=0, BattleSceneLoading, PreBattle, InBattle, PostBattle }
View gist:38cc24827c0f13f4ec5e4a9ae912a0a9
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.Assertions;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Networking;
using Prototype.NetworkLobby;
using System;
public enum BattleSMState { None=0, BattleSceneLoading, PreBattle, InBattle, PostBattle }
View LobbyManager.cs
using UnityEngine;
using UnityEngine.Assertions;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using UnityEngine.Networking;
using UnityEngine.Networking.Types;
using UnityEngine.Networking.Match;
using System.Collections;
namespace Prototype.NetworkLobby
View LobbyManager.cs
using UnityEngine;
using UnityEngine.Assertions;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using UnityEngine.Networking;
using UnityEngine.Networking.Types;
using UnityEngine.Networking.Match;
using System.Collections;
namespace Prototype.NetworkLobby
You can’t perform that action at this time.