Skip to content
Discussion options

You must be logged in to vote

You just need to make the function an extension function. For example, if you want the button to appear when a GameObject is inspected: public static void ToggleCollider( this GameObject go )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CastleSeven
Comment options

Answer selected by CastleSeven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants