Unity3d

From John Freier
Revision as of 22:38, 7 May 2013 by Jfreier (Talk | contribs) (Quality Settings)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Unity 3D

Scripting

Transform

To use movement without physics use Transform.translate();

Transform.Translate()

http://docs.unity3d.com/Documentation/ScriptReference/Transform.Translate.html

To use movement with physics use Rigidbody.AddForce();

rigidbody.AddForce (Vector3.up * 10);

http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody.AddForce.html

2D Information

Camera

Change camera mode for Projection from Perspective(2 eye camera, so the sides will show) to Orthographic (1 eye camera).

Complete 2D View

Reference http://docs.unity3d.com/Documentation/Components/class-Camera.html

YouTube Videos

Unity 2D Game Tutorial - Part 1 Sprites and You. http://www.youtube.com/watch?v=DZucUpZtg2U

Quality Settings

I had some issues with the web player looking different then the other platforms, turns out I just need to adjust the quality of the build. On the top there is a default quality drop down, and set it to Beautiful and it worked.

http://docs.unity3d.com/Documentation/Components/class-QualitySettings.html