Accessing SerializedProperty form custom inspector

Hi,

I’m trying to access a SerializedProperty form a particle system but I can’t get the real name of the property (I’m guessing it using the debug inspector view). The property I’m trying to access is “Mesh” form the particle system module “Shape”.

Here is the code:

SerializedProperty meshEmitter = newSerializedObject.FindProperty("ShapeModule.xxxxxxxx");

Where xxxxx must be the name of the variable. Does Anyone know how to get the assigned mesh emitter form particle system i the editor?

Cheers

This one shows you all the properties:
http://forum.unity3d.com/threads/171467-Legacy-and-Shuriken-Particle-System-find-hidden-properties-name?p=1174874&viewfull=1#post1174874

Many Thanks Dantus! I will give that a try.

Anyway I have found that the Unity guys forgot to make public the SerializedProperty.gradientValue… a shame :frowning:

Thanks again

UnityEditor.SerializedProperty.gradientValue’ is inaccessible due to its protection level

is this fixed after 2017.2 version?