-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dev→master] Billboard updates #1856
[Dev→master] Billboard updates #1856
Conversation
… Billboard Fixes microsoft#1672, fixes microsoft#383, fixes microsoft#208.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, with minor style guidelines suggestions
@@ -22,7 +29,7 @@ public class Billboard : MonoBehaviour | |||
/// The axis about which the object will rotate. | |||
/// </summary> | |||
[Tooltip("Specifies the axis about which the object will rotate.")] | |||
public PivotAxis PivotAxis = PivotAxis.Free; | |||
public PivotAxis PivotAxis = PivotAxis.XY; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's follow the new guidelines wrt fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Updated both your comments.
@@ -22,7 +29,7 @@ public class Billboard : MonoBehaviour | |||
/// The axis about which the object will rotate. | |||
/// </summary> | |||
[Tooltip("Specifies the axis about which the object will rotate.")] | |||
public PivotAxis PivotAxis = PivotAxis.Free; | |||
public PivotAxis PivotAxis = PivotAxis.XY; | |||
|
|||
[Tooltip("Specifies the target we will orient to. If no Target is specified the main camera will be used.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get a summary tag here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure @SimonDarksideJ might have something to say about that Enum, but I don't mind 😛
Port of #1817.
Overview
Added support for all combinations of axes. I rearranged the enum to preserve existing behavior (the previous Free was actually only the X and Y axes).
Changes