Differences
This shows you the differences between two versions of the page.
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' | ||
+ | |||
+ | ===== 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. | ||
- | + | </ | |
- | ==== Convertions ==== | + | === Conversions |
<code c#> | <code c#> | ||
// Convert from Quaternion to Euler: | // Convert from Quaternion to Euler: | ||
Line 207: | Line 218: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ==== Rect Transform ==== | ||
+ | |||
+ | These friggen things. If you press shift and then alt, something happens. Will need to dive into this at one point. | ||
+ | |||
+ | {{:: | ||
===== Unity Engine ===== | ===== Unity Engine ===== | ||
Line 334: | Line 351: | ||
public Component particleSystem { get; } | public Component particleSystem { get; } | ||
</ | </ | ||
+ | |||
+ | ===== Debug ===== | ||
+ | |||
+ | You can format your debug colors! | ||
+ | |||
+ | <code c#> | ||
+ | Debug.LogError("< | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 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:// | ||
+ | |||
+ | Another option is to use Photon' | ||
+ | |||
+ | ==== Photon PUN ==== | ||
+ | |||
+ | === PhotonView === | ||
+ | A [[https:// | ||