Skip to content
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

Bounding box layer mask fix #1594

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ MonoBehaviour:
scalePadding: 0.05
flattenedScalePadding: 0
boundsCalculationMethod: 0
physicsLayer: 0
ignoreLayer: 2
ignoreLayers:
serializedVersion: 2
m_Bits: 4
--- !u!114 &114547907076679292
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -174,5 +175,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 8afaaf647e592574d8a56bc26e61f82d, type: 3}
m_Name:
m_EditorClassIdentifier:
PhysicsLayer: 0
boundingBox: {fileID: 114030465538688920}
2 changes: 1 addition & 1 deletion Assets/HoloToolkit/UX/Scripts/BoundingBoxes/BoundingBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected set

[Tooltip("Any renderers on this layer will be ignored when calculating object bounds")]
[SerializeField]
protected LayerMask ignoreLayers = LayerMask.NameToLayer("Ignore Raycast");
protected LayerMask ignoreLayers = (1 << 2); // Ignore Raycast Layer

protected Vector3 targetBoundsWorldCenter = Vector3.zero;
protected Vector3 targetBoundsLocalScale = Vector3.zero;
Expand Down