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.


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


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.


Did you know that you can manipulate a game objects collider in the scene view by holding down the 'Shift' key. Holding shift will display the colliders control dots. Just drag the dots to adjust the collider!


To allow the user to undo actions that are performed by a custom editor script you can use Undo.RegisterUndo

foreach (var item in Selection.transforms)
{
    Undo.RegisterUndo(item, "Move " + item.name);
    var pos = item.position;
    pos = new Vector3(activeObject.transform.position.x, pos.y, pos.z);
    item.transform.position = pos;
}

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