Code Monkey home page Code Monkey logo

unityutilities's Introduction

Unity Utilities

Anton Franzluebbers

This is a collection of utility scripts and assets that I have created that are applicable to a variety of projects. Also includes prefabs to quickly start a new project.

Usage

Clone and use the package manager to add package.json, or add the git url to Packages/manifest.json.

Scripts included

AdjustPos.cs

Nudges an object with assignable keyboard shortcuts. Add this script to the object, then customize the inputs in the editor.

InputMan.cs

Makes input from VR devices accessible from a unified set of methods. Can treat axes as button down. Needs an InputModule to work, so either add the default one with the button in the editor, or add a platform-specific one.

Logger.cs

Logs any data to a file.

CopyTransform.cs

One object copies the position and/or rotation of another using a variety of techniques. Global or local offsets can be set.

SaveLoc.cs

Saves the location and rotation of an object to playerprefs. Local or global coordinates.

Movement.cs

Adds several movement techniques while maintaining compatibility with many rig setups. Techniques supported:

  • Teleporting
  • Hand movement (Echo style)
  • Translational gain

Editor/SetupVRInput.cs

Adds a dropdown menu option for automatically populating the Input system for use with the InputMan script for use with a VR device.

Editor/EditorShortcutKeys.cs

Adds F5 shortcut to enter play mode.

ControllerHelp.cs and ControllerHelpTester.cs

Adds functionality to highlight controller buttons and show hints. To use, add the ControllerHelp prefab found in the Prefabs folder to the scene anywhere. Highlighting inputs can be done by calling the static method ControllerHelp.ShowHint() and passing in a message.

DontDestroyOnLoad.cs

That's it

Rig.cs

Basically a data structure for VR rigs.

VRObject.cs

Track an Oculus VRObject

Interaction Scripts

PointForceGrabbable.cs

A versatile grab script that can work for positional dials and general physics grabbing.

TODO

  • Teleport line shader doesn't compile with build by default

brook requests

  • Prefab: Rig->Right Hand and Rig->Left Hand are missing a script

unityutilities's People

Contributors

antonfranzluebbers avatar ntsfranz avatar kjjohnsen avatar

Watchers

 avatar  avatar Yuyang Li (Ian) avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.