Website may be up and down over next few months. I'm currently doing a complete overhaul of everything. Going back to simple individual .htm pages, new overall site theme, sanitizing and cleaning up html of all pages and blog posts, attempting to implement a new tooling and publishing system etc etc.

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 (this.camera == null)
            {
                this.cameraGameObject = new GameObject();
                this.camera = this.cameraGameObject.AddComponent<Camera>();
            }

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

            var planes = GeometryUtility.CalculateFrustumPlanes(this.camera);

            foreach (GameObject obj in objects)
            {
                if (obj == this.cameraGameObject)
                {
                    continue;
                }

                // if no collider just ignore
                if (obj.collider == null)
                {
                    continue;
                }

                if (GeometryUtility.TestPlanesAABB(planes, obj.collider.bounds))
                {
                    results.Add(obj);
                }
            }

            return results.ToArray();
        }


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


You can use Application.ExternalCall to call JavaScript functions on the page the web player is displayed in.


Did you know you can pass in command line arguments when running Unity as well as with the standalone players! Read Here.


If you need to get more detailed logging information check out the Log Files page. 


If you have a modal with animation(s) you can export the model without any animation. Then export additional copies of the model with animation and with the same name but with “@animationname” at the end of the file name. Read the section on “Importing Animations using multiple model files” here.


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


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


If you need to output information to the unity console check out the Debug class.


If you need to set the screen resolution of your game via scripting check out Screen.SetResolution.


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