Coder Social home page Coder Social logo

untity-extension-methods's Introduction

unity-extension-methods

Various Unity- and game-dev-focused utilities, implemented as C# extension methods.

List Extensions

Some RNG-based extensions for common gameplay code (getting a random element from a list, shuffling a list, etc.). Also includes a flexible extension for formatting lists as human-readable strings, similar to python's String.join().

String Extensions

These are mostly for transforming strings using Unity's HTML tags (such as <color>, <b>, <i>).

Vector Extensions

A couple of extensions that will return a Vector2/3 with one of its components modified, as well as some shorthand for swizzling a Vector2 into a Vector3 and flatting a Vector3 into a Vector2.

GameObject/Component Extensions

Simple queries such as HasComponent<T> if you're tired of null checking.

Rect/Event Extensions

Multitude of methods for transforming Unity's Rect structs. Useful for building custom Editor GUIs using the legacy immediate-mode GUI.

MoreGizmos

Extends gizmo drawing by exposing primitive drawing functions (disc, label), only found in the Handles class to non-editor code.

untity-extension-methods's People

Contributors

ophilbinbriscoe avatar

Stargazers

Rimuru avatar  avatar Nícolas Catarina Parreiras avatar Caleb Brown avatar Miguel Medina Ballesteros avatar  avatar  avatar  avatar Mr.Hu avatar

Watchers

James Cloos avatar  avatar  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.