C# Class UnityContrib.UnityEngine.BaseSelector

Base implementation for selectors. A selector is a component that selects a T:UnityEngine.Transform. The advantage of using this component is that you don't need to write the same find game object code over and over. You can simply attach an instance of a selector to a game object and let that instance find the T:UnityEngine.Transform for you.
Inheritance: UnityEngine.MonoBehaviour
Datei anzeigen Open project: UnityContrib/framework

Public Methods

Method Description
Reselect ( ) : void

Clears the selected T:UnityEngine.Transform so next time P:UnityContrib.UnityEngine.BaseSelector.Selected is called the selection algorithm will reevaluate.

Protected Methods

Method Description
Select ( ) : Transform

When implemented, returns the selected T:UnityEngine.Transform.

Method Details

Reselect() public method

Clears the selected T:UnityEngine.Transform so next time P:UnityContrib.UnityEngine.BaseSelector.Selected is called the selection algorithm will reevaluate.
public Reselect ( ) : void
return void

Select() protected abstract method

When implemented, returns the selected T:UnityEngine.Transform.
protected abstract Select ( ) : Transform
return UnityEngine.Transform