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

Add CalculateCollidersForHierarchy Method and Improve NullReferenceException Handling #54

Conversation

nobShinjo
Copy link

  1. Addition of CalculateCollidersForHierarchy Method:

    • Introduced a method to calculate and decompose meshes within a hierarchy and generate colliders.
  2. Prevention of NullReferenceException:

    • Added error handling to prevent a NullReferenceException when neither a MeshFilter nor a SkinnedMeshRenderer is attached to the object.
    • If these components are missing, a dialog now notifies the user, and the process is safely aborted.

Please review and provide your feedback!

…edMeshRenderer is present.

Added a check to handle cases where neither MeshFilter nor SkinnedMeshRenderer is attached to the object. A dialog now notifies the user of the missing components instead of throwing a NullReferenceException.
…enu and button support

Added the `CalculateCollidersForHierarchy` method to calculate and decompose meshes in the hierarchy.
@SarahWeiii SarahWeiii merged commit 9dd8431 into SarahWeiii:unity Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants