When selecting multiple objects I want to display all their respective handles.
The draw handle method is called in OnSceneGUI, however, accessing the property via
((MyInfo) myInfoProperty.objectReferenceValue).DrawHandles();
only draw the handles for the first selected object. Using:
foreach (Object obj in targets) {
MyObject myObject = (MyObject)obj;
myObject.myInfo.DrawHandles();
}
works, but spams the following error:
The targets array should not be used
inside OnSceneGUI or OnPreviewGUI. Use
the single target property instead.
which corresponds to what the documentation is saying, but it doesn’t say how to support multiple targets.