Skip to content

Commit

Permalink
Added DisallowMultipleComponent attribute to CylinderCollider to fix …
Browse files Browse the repository at this point in the history
…unexpected behavior when more than one CylinderCollider component is added to one object.

Updated screenshot.
  • Loading branch information
Sztorm committed Aug 12, 2021
1 parent 178bc58 commit 1537727
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/CylinderCollider/Scripts/CylinderCollider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace Sztorm.CylinderCollider
/// editor mode.
/// </summary>
[AddComponentMenu("Physics/CylinderCollider")]
[DisallowMultipleComponent]
public sealed class CylinderCollider : MonoBehaviour
{
private const string ColliderHolderNamePrefix = "ColliderHolder_ffzTiMRQ5y_";
Expand Down
Binary file modified Media/Screenshot_Inspector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1537727

Please sign in to comment.