Class SketchObjectSelection
Represents a selection of SketchObjects and SketchObjectGroups. When the selection is activated the game objects are parented to the selection game object and highlighted. When deactivating the object return to their original position in the hierarchy. There can only be one active selection at a time.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
SketchObjectSelection
Namespace: VRSketchingGeometry.SketchObjectManagement
Assembly: VRSketchingGeometry.dll
Syntax
public class SketchObjectSelection : MonoBehaviour
Remarks
Original author: tterpi
Properties
ActiveSketchObjectSelection
Declaration
public static SketchObjectSelection ActiveSketchObjectSelection { get; set; }
Property Value
| Type | Description |
|---|---|
| SketchObjectSelection |
Methods
GetObjectsOfSelection()
Declaration
public List<SelectableObject> GetObjectsOfSelection()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<SelectableObject> |
RemoveAllFromSelection()
Deactivate selection and clear the added objects.
Declaration
public void RemoveAllFromSelection()