Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
unity_game_dev [2020/04/13 19:01]
paul [InputField]
unity_game_dev [2020/04/18 21:02] (current)
paul [Unity Engine]
Line 6: Line 6:
  
 Unity comes with a bunch of tools that you have to install from the package manager. This is confusing because they have both an asset store and a package manager. You can install Probuilder, which lets you design, prototype and play-test levels rapidly in the Unity Editor. Unity comes with a bunch of tools that you have to install from the package manager. This is confusing because they have both an asset store and a package manager. You can install Probuilder, which lets you design, prototype and play-test levels rapidly in the Unity Editor.
 +
 +==== Cameras ====
 +
 +To set a camera's view to be aligned with your scene view, select the camera and in the GameObject menu select "Align with Scene View".
 +
 +===== Reference Frames =====
 +
 +Unity uses left handed chirality.
 +
 +Forward in Unity is the +z axis. 
 +Right is +x, up is +y.
  
 ===== Prefabs ===== ===== Prefabs =====
Line 57: Line 68:
  
 // You usually create a rotation in euler and then convert to quaternion. // You usually create a rotation in euler and then convert to quaternion.
- +</code> 
-==== Convertions ====+=== Conversions ===
 <code c#> <code c#>
 // Convert from Quaternion to Euler: // Convert from Quaternion to Euler:
Line 207: Line 218:
 } }
 </code> </code>
 +
 +==== Rect Transform ====
 +
 +These friggen things. If you press shift and then alt, something happens. Will need to dive into this at one point.
 +
 +{{::toppanelanchorspreset.gif?400|}}
  
 ===== Unity Engine ===== ===== Unity Engine =====
Line 334: Line 351:
         public Component particleSystem { get; }         public Component particleSystem { get; }
 </code> </code>
 +
 +===== Debug =====
 +
 +You can format your debug colors!
 +
 +<code c#>
 +Debug.LogError("<Color=Red><a>Missing</a></Color> Beams Reference");
 +</code>
 +
 +
 +===== Multiplayer =====
 +
 +There multiple ways of doing multiplayer in Unity. Unity used to support a multiplayer system called UNet but it was deprecated in 2019 and removed from the codebase. They have yet to fully roll out their new version. Read about it [[https://support.unity3d.com/hc/en-us/articles/360001252086-UNet-Deprecation-FAQ|here]].
 +
 +Another option is to use Photon's PUN service. It is free for up to 20 concurrent users and handles matchmaking. There's an official [[https://doc.photonengine.com/en-us/pun/v2/demos-and-tutorials/pun-basics-tutorial/intro|written tutorial here]].
 +
 +==== Photon PUN ====
 +
 +=== PhotonView ===
 +A [[https://doc-api.photonengine.com/en/pun/v2/class_photon_1_1_pun_1_1_photon_view.html#details|PhotonView]] identifies an object across the network (viewID) and configures how the controlling client updates remote instances.
  
  • unity_game_dev.1586804484.txt.gz
  • Last modified: 2020/04/13 19:01
  • by paul