![]() |
FCV Engine 0.1
A tool and framework for tutorials in game development
|
A custom editor for the Moving Platform class to give access to the player in-editor to customize points and visualize how moving platform will look along points. More...
Private Member Functions | |
void | PlayModeStateChanged (PlayModeStateChange state) |
Destroys and un-subscribes from events if state is ExitingEditMode. | |
void | DestroyPreviewObject () |
Destroys the object used to preview path. | |
void | SelectionChanged () |
If the target MovingPlatform is not this it will try to destroy preview object. | |
void | MakePositionAndLineHandles () |
Makes position handles to control the points where the moving platform travels through and makes lines between them. | |
void | CreatePreviewObject () |
Creates a copy of the moving platform object but sets all sprite alpha value to 0.2. | |
A custom editor for the Moving Platform class to give access to the player in-editor to customize points and visualize how moving platform will look along points.
Definition at line 10 of file MovingPlatformEditor.cs.
|
private |
Destroys and un-subscribes from events if state is ExitingEditMode.
state | PlayModeStateChange Enum from EditorApplication.playModeStateChanged |
Definition at line 47 of file MovingPlatformEditor.cs.