When I add an animation event the inspector displays every method (not just public ones) from every script in the game object including “Fixed Update”. How can I hide non public methods from the inspector? [HideInInspector] doesn’t work.
For me I could change my methods from
internal. This allows it to be essentially public within your code but not to external.
I use it to keep my events list tidy and short so people using the editor don’t have to scroll through a lot of options - especially methods they should not be calling!
More info can be found here: .net assembly - Practical uses for the "internal" keyword in C# - Stack Overflow
Do not work anymore.