SceneViewPickerAllow you to pick a target from a scene view, then assign it into your field.
Once clicked the picking icon, use left mouse to choose a target. Once a popup is displayed, choose the target you want.
If you just want the closest one, just click, then click again (because the closest one is always at the position of your cursor)
Usage:
- Left Mouse: pick; when popup is displayed, click away to close the popup
- Middle Mouse: cancel
using SaintsField; [SceneViewPicker] public Collider myCollider; // works with SaintsInterface [SceneViewPicker] public SaintsObjInterface<IInterface1> interf; // a notice will diplay if no target is found [SceneViewPicker] public NoThisInScene noSuch; // works for list elements too [SceneViewPicker] public Object[] anything;
This feature is heavily inspired by Scene-View-Picker! If you like this feature, please consider go give them a star!
Because Scene-View-Picker does not provide API for script calling, I have to completely re-write the logic for in SaintsField instead of depended on it.