Showing posts with label User. Show all posts
Showing posts with label User. Show all posts

Saturday, July 8, 2017

Global vs Local

There are times when it is beneficial to work either in what is referred to as Local or Global space.  This manifests itself in a few places.  In the editor, you may have seen these buttons.  They toggle where the center point of an object is [Center/Pivot], and the transform reference [Local/Global]

 

As an example of the distinction, Center will place the transform marker at the average center of the object including the shape of its children.  To the contrary, the Pivot will place the center at what I would call the "center reference" as defined in the original model.

In the same way Local and Global refer to the reference in space for the transform.  This can be most easily seen in the available transform functions.

  • eulerAngles/localEulerAngles
  • position/localPosition
  • rotation/localRotation
  • scale/localScale
Specifically with child objects, using one or the other makes a significant difference in behavior.  Making changes to the global transform of a child object will control it irrespective of what the parent is doing whereas local changes are relative to what the parent is doing.

Saturday, February 6, 2016

Quick Prefab Creation


  1. Create the object in the scene (Hierarchy)
  2. Modify all desired attributes and components
  3. Drag the game object from the Hierarchy view to the Project view

Friday, February 5, 2016

Unity Install - Conflict with MSVC

Received error code 1603 while trying to install Unity.

Read on a forum this is a non-issue.  Ignored the error, and as far as I can tell, Unity finished installing successfully.

Scene Navigation

F - Center on object

Left-Click - Box Select
Right-Click - Orbit Object
Middle-Click - Pan View
Alt+Right-Click - Zoom