Inheritance
PathEditorTool<T>
public abstract class PathEditorTool<T> : EditorTool, IDuringSceneGuiTool where T : ScriptablePath
Type Parameters
Properties
Declaration
public bool enableSnapping { get; set; }
Property Value
Declaration
public override GUIContent toolbarIcon { get; }
Property Value
| Type |
Description |
| GUIContent |
|
Methods
Declaration
protected virtual IDrawer GetCustomDrawer(UnityEngine.Object target)
Parameters
| Type |
Name |
Description |
| UnityEngine.Object |
target |
|
Returns
Declaration
protected virtual bool GetLinearTangentIsZero(UnityEngine.Object target)
Parameters
| Type |
Name |
Description |
| UnityEngine.Object |
target |
|
Returns
Declaration
public T GetPath(UnityEngine.Object targetObject)
Parameters
| Type |
Name |
Description |
| UnityEngine.Object |
targetObject |
|
Returns
Declaration
protected abstract IShape GetShape(UnityEngine.Object target)
Parameters
| Type |
Name |
Description |
| UnityEngine.Object |
target |
|
Returns
Declaration
protected virtual void Initialize(T path, SerializedObject serializedObject)
Parameters
| Type |
Name |
Description |
| T |
path |
|
| SerializedObject |
serializedObject |
|
Declaration
public override bool IsAvailable()
Returns
Declaration
protected virtual void OnActivate()
Declaration
protected virtual void OnCustomGUI(T path)
Parameters
| Type |
Name |
Description |
| T |
path |
|
Declaration
protected virtual void OnDeactivate()
Declaration
public void SetPath(UnityEngine.Object target)
Parameters
| Type |
Name |
Description |
| UnityEngine.Object |
target |
|
Declaration
protected abstract void SetShape(T path, SerializedObject serializedObject)
Parameters
| Type |
Name |
Description |
| T |
path |
|
| SerializedObject |
serializedObject |
|