FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
MovingPlatformEditor Class Referencesealed

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...

Inheritance diagram for MovingPlatformEditor:

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.
 

Detailed Description

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.

Member Function Documentation

◆ PlayModeStateChanged()

void PlayModeStateChanged ( PlayModeStateChange state)
private

Destroys and un-subscribes from events if state is ExitingEditMode.

Parameters
statePlayModeStateChange Enum from EditorApplication.playModeStateChanged

Definition at line 47 of file MovingPlatformEditor.cs.


The documentation for this class was generated from the following file: