Difference between revisions of "Unity3d"

From John Freier
Jump to: navigation, search
(2D Information)
(Quality Settings)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Unity 3D
 
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 ==
 
== 2D Information ==
 
===Camera===
 
===Camera===
 
Change camera mode for '''Projection''' from Perspective(2 eye camera, so the sides will show) to '''Orthographic''' (1 eye 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
 
Reference
 
http://docs.unity3d.com/Documentation/Components/class-Camera.html
 
http://docs.unity3d.com/Documentation/Components/class-Camera.html
 
  
 
== YouTube Videos ==
 
== YouTube Videos ==
 
Unity 2D Game Tutorial - Part 1 Sprites and You.
 
Unity 2D Game Tutorial - Part 1 Sprites and You.
 
http://www.youtube.com/watch?v=DZucUpZtg2U
 
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

Latest revision as of 22:38, 7 May 2013

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