Method GetSelectionCandidate
GetSelectionCandidate(IUsesSelectObject, GameObject, bool)
Given a hovered object, find what object would actually be selected
Declaration
public static GameObject GetSelectionCandidate(this IUsesSelectObject user, GameObject hoveredObject, bool useGrouping = false)
Parameters
Type | Name | Description |
---|---|---|
IUsesSelectObject | user | The functionality user |
GameObject | hoveredObject | The hovered object that is being tested for selection |
bool | useGrouping | Use group selection |
Returns
Type | Description |
---|---|
GameObject | Returns what object would be selected by selectObject |