- Home /
Question by
Maeslezo · Mar 18, 2016 at 12:44 PM ·
reflectioncustom inspectorcustom-editorbest practices
Editor script private fields and method best practices
Hello,
What is the best approach to use private fields and methods of the in a custom editor script?
I mean:
public class Foo
{
private int a;
private float Method(int b)
{
....
....
}
}
For design, I would like to keep private variable a and Method(int b). What could be the best approach to use this in its own editor? By reflection, for example?
Comment
Your answer

Follow this Question
Related Questions
Get all inherited classes of an abstract class - Editor Scripting 1 Answer
Getting a target's gameobject in custom editor 1 Answer
Events in custom inspector 1 Answer
C# Using Reflection to Automate finding classes 1 Answer
How to refract a linerenderer through a 2d object using Physics2D ? 0 Answers