Closed aitchest-of-dees closed 8 years ago
Can you post the type that you have derived from BaseBehavior?
This looks like an issue with generating a human readable name for the type.
The type? It's just a class. Changed from:
public class PlayerPickerBaseScene : MonoBehaviour
to
public class PlayerPickerBaseScene : BaseBehavior
So far just this class has the error. I've done the same thing now with other classes and the others seem to work, except I can't see any properties that have getters/setters.
Ok, I think I figured out the problem. I had an object I was locking in that script. I seem to have made the object public by mistake. Changing it to private fixed the error. It just so happened that was the first script I tested Full Inspector out.
If it's working, that's awesome.
I'm really curious about the CSharpName
exception, since I've never seen it that method crash before. Can you post the entire PlayerPickerBaseScene
class? Was PlayerPickerBaseScene
in a namespace?
I seem to have made the object public by mistake. Changing it to private fixed the error.
I'm not quite sure what you mean by making the object public.
I mean it was
public object locky;
now it's
private object locky;
It was public by mistake. I'm pretty sure this code
lock(locky) { //code }
was the issue because it was a public property, Full Inspector was probably trying to get information about it, but the object was locked.
Ok, I'm going to close this issue then. Please reopen or file a new issue if you run into any other problems.
Howdy,
I'm trying to figure out how to use this for my MonoBehaviour scripts. Nothing new shows up in the inspector out of the box. I can get very simple things to work from the examples, like wrapping a Dictionary inside of a BaseObject, but I don't want to change all my objects in this way. Instead I tried changing a script from MonoBehaviour to BaseBehavior, and I'm getting errors on one of my scripts (I was able to get this to work on another script without errors).
Error 1 happens 1 time:
Error 2 happens every frame.