- Home /
The problem got solved after deleting some conflicting files.
Fields using Struct not showing up in Inspector.
Hi, I am not able to see the fields of the properties defined using struct. I am able to see the property label but the field is not visible. I am using the Fungus plugin with Unity 5.5.3p3. This issue is only happening in one of my projects as it's working properly when i import it in an empty project. I am attaching the screenshot of the inspector below.
As you can see the property Start Label's field is not visible. Any help would be appreciated.
Answer by Adam-Mechtley · May 25, 2017 at 03:30 PM
Are you drawing this using EditorGUI.PropertyField()? If so, note that there is an optional bool parameter to include children. It should be set to true
.
Hi, I tried this but it's still not visible. The same plugin works properly in empty project or in other projects. But this happened after I imported it in a particular project. Is there anything in particular that might affect this editor code?
$$anonymous$$aybe I'm not clear. I was under the impression that when you expand it's foldout (i.e. the little triangle to the left of "Start Label") it does not show the child properties. Is that not the issue?
Hi Adam, thanks for the reply. Yeah, that was the issue. But it was caused by some editor scripts of Google Analytics conflicting with those of Fungus engine. Now it's working properly after i deleted those conflicting scripts.
Yeah, the problem was exactly as you understood. But it was caused due to something else.
Thanks for your reply.