You can get detailed system information by using the SystemInfo class. SystemInfo provides information on the graphic device hardware, processor count, operating system, device type and more. Very handy for gathering stats/trends on your users hardware specs.

The Unity API provides access to a OpenGL style graphics for immediate mode drawing in the class called “GL”.

You can perform Frustum and AABB collision detection using something similar to the fallowing code ...

public object[] GetObjects(Vector3 position, float distance, float fov, Vector3 direction)
            var results = new List<GameObject>();

            // search all game objects
            var objects = UnityEngine.Object.FindObjectsOfType(typeof(GameObject));

            if ( == null)
                this.cameraGameObject = new GameObject();
       = this.cameraGameObject.AddComponent<Camera>();

            this.cameraGameObject.transform.position = position;
            this.cameraGameObject.transform.forward = direction;
   = fov;
   = distance;

            var planes = GeometryUtility.CalculateFrustumPlanes(;

            foreach (GameObject obj in objects)
                if (obj == this.cameraGameObject)

                // if no collider just ignore
                if (obj.collider == null)

                if (GeometryUtility.TestPlanesAABB(planes, obj.collider.bounds))

            return results.ToArray();

You can get access to more powerful controls by using an undocumented unity api the TextEditor control.

var te = (TextEditor)GUIUtility.GetStateObject(typeof(TextEditor), GUIUtility.keyboardControl);
if (te != null)
    te.MoveCursorToPosition(new Vector2(5555, 5555));

If you need to know what symbols Unity uses for conditional compilation check out the docs page Platform Dependent Compilation

If you need to know what platform your code is running under you can use Application.platform.

If you need to run some script code as soon as the editor has launched you can use the InitializeOnLoad attribute.

With scripting you can add menu items that have shortcut keys assigned to them. Read the MenuItem description for more information.

A great way to help debug your game is to use Gizmos to visually represent empty game objects in your scene.

Check out BurgZergArcade's youtube channel with over 200+ unity tutorial videos.

Unity 101 Tip #15 - Tags

Published 7/10/2012 by createdbyx in News | Programming | Unity

 When working with multiple duplicate game objects you may want use tags to uniqely identify a specific object.  You can then use GameObject.FindGameObjectsWithTag to select that specific object in your scripts.

Created by: X

Just another personal website in this crazy online world

Name of author Dean Lunz (aka Created by: X)
Computer programming nerd, and tech geek.
About Me -- Resume