All Projects → mminer → Unity Extensions

mminer / Unity Extensions

Licence: mit
Useful extension methods for Unity.

Projects that are alternatives of or similar to Unity Extensions

Kino
A collection of custom post processing effects for Unity
Stars: ✭ 1,054 (+2008%)
Mutual labels:  unity, unity3d
Unitystandalonefilebrowser
A native file browser for unity standalone platforms
Stars: ✭ 1,002 (+1904%)
Mutual labels:  unity, unity3d
Scene View Bookmarks
Unity editor extension to bookmark scene views.
Stars: ✭ 40 (-20%)
Mutual labels:  unity, unity3d
Mujocounity
Reproducing MuJoCo benchmarks in a modern, commercial game /physics engine (Unity + PhysX).
Stars: ✭ 47 (-6%)
Mutual labels:  unity, unity3d
Minject
Mono Framework Interaction / Injection Library for .NET (C++/CLI)
Stars: ✭ 42 (-16%)
Mutual labels:  unity, unity3d
Packedrgbmshader
32-bit packed color format with RGBM encoding for shader use
Stars: ✭ 39 (-22%)
Mutual labels:  unity, unity3d
Ecs Snake
Simple snake game powered by ecs framework.
Stars: ✭ 41 (-18%)
Mutual labels:  unity, unity3d
Minimumaudioplugin
Minimum implementation of a native audio plugin for Unity
Stars: ✭ 33 (-34%)
Mutual labels:  unity, unity3d
Unity Executionorder
A collection of attributes to control the execution order of your scripts in Unity from your source code.
Stars: ✭ 48 (-4%)
Mutual labels:  unity, unity3d
Bepinex
Unity / XNA game patcher and plugin framework
Stars: ✭ 1,001 (+1902%)
Mutual labels:  unity, unity3d
Mesh maker vr
Mesh Maker VR
Stars: ✭ 47 (-6%)
Mutual labels:  unity, unity3d
Uniuguitoolbar
【Unity】uGUI のオブジェクトを作成できるツールバーのエディタ拡張
Stars: ✭ 44 (-12%)
Mutual labels:  unity, unity3d
Unity 3mx
Load 3MX/3MXB format LOD model files generated by Bentley ContextCapture into Unity.
Stars: ✭ 38 (-24%)
Mutual labels:  unity, unity3d
Unitypluginwithwsl
Unity native plugin with WSL (Windows Subsystem for Linux)
Stars: ✭ 39 (-22%)
Mutual labels:  unity, unity3d
Easyanimation
一套操作极简轻量的Unity UGUI动画控制小工具,适用于Unity5.x以上
Stars: ✭ 35 (-30%)
Mutual labels:  unity, unity3d
Grubo
Audio visual experience with Roland Groovebox MC-101 and the Unity game engine
Stars: ✭ 41 (-18%)
Mutual labels:  unity, unity3d
Unity Signals
Signals for Unity3D
Stars: ✭ 32 (-36%)
Mutual labels:  unity, unity3d
Flutter Unity View Widget
Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
Stars: ✭ 961 (+1822%)
Mutual labels:  unity, unity3d
Chasingplanes unity3d
A "Missiles" game replica, 2D fun mobile game about avoiding missiles while flying a plane.
Stars: ✭ 42 (-16%)
Mutual labels:  unity, unity3d
Unity Core Project
Core Framework for Unity
Stars: ✭ 42 (-16%)
Mutual labels:  unity, unity3d

Unity Extensions

Here we have extension methods for Unity objects (GameObject, Vector3, etc.). These add useful functionality that I often end up reimplementing in every game I make.

Usage

Add the scripts to your Unity project wherever you see fit. The classes are in the Extensions namespace, so you must first import them with the using keyword.

using Extensions;

Now call the extensions on the appropriate object type.

void Awake ()
{
    var someComponent = gameObject.GetOrAddComponent<MyComponent>();
}

Included Extensions

The extensions here are a work in progress.

Component

someComponent.AddComponent<MyComponent>();

someComponent.GetOrAddComponent<MyComponent>();

someComponent.HasComponent<MyComponent>();

GameObject

gameObject.GetOrAddComponent<MyComponent>();

gameObject.HasComponent<MyComponent>();

NetworkPlayer

Network.player.GetIndex();

Rigidbody

// Change direction of movement without modifying speed.
rigidbody.ChangeDirection(Vector3.right);

Transform

// Make array of game objects children of this transform.
transform.AddChildren(someGameObjects);

// Set children of this transform to position (0, 0, 0).
transform.ResetChildPositions();

transform.SetChildLayers("Ignore Raycast");

Vector3

// Find closest position.
var otherPositions = someTransforms.Select(t => t.position);
transform.position.GetClosest(otherPositions);

Vector3Int

// Convert `Vector3Int` struct to `Vector3`.
var vector = new Vector3Int(1, 2, 3);
var vector3 = vector.ToVector3();
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].