![]() |
Kerbal Space Program
1.12.4
|
Public Member Functions | |
void | Collapse () |
Transition the panel to the collapsed state More... | |
void | CollapseImmediate () |
Transition the panel to the collapsed state immediately - no animation More... | |
void | Expand () |
Transition the panel to the expanded state More... | |
void | ExpandImmediate () |
Transition the panel to the expanded state immediately - no animation More... | |
![]() | |
void | Transition (string stateName, System.Action onFinished=null) |
void | Transition (int stIndex) |
Transition this panel to its new position immediately - no lerp More... | |
void | Transition (int stIndex, System.Action onFinished) |
Transition this panel to its new position immediately - no lerp More... | |
void | TransitionImmediate (string stateName, System.Action onFinished=null) |
Transition this panel to its new position immediately - no lerp More... | |
void | TransitionImmediate (int stIndex) |
void | TransitionImmediate (int stIndex, System.Action onFinished) |
Protected Member Functions | |
void | OnValidate () |
![]() | |
void | Lerp_Pre (float transitionTime, Vector2 vCrr, Vector2 vTgt) |
Vector2 | Lerp_Transition (float t, Vector2 vCrr, Vector2 vTgt) |
void | Linear_Pre (float transitionTime, Vector2 vCrr, Vector2 vTgt) |
Vector2 | Linear_Transition (float t, Vector2 vCrr, Vector2 vTgt) |
void | SetInteractable (bool interactable) |
void | SetMethod (Method m) |
Properties | |
bool | collapsed [get] |
bool | expanded [get] |
![]() | |
string | State [get, set] |
int | StateIndex [get, set] |
bool | Transitioning [get, set] |
Additional Inherited Members | |
![]() | |
enum | Method { Method.Linear, Method.Lerp } |
![]() | |
List< GameObject > | childrenForDeactivate = new List<GameObject>() |
bool | lockWhileTransitioning = true |
UnityEngine.Events.UnityEvent | onTransitionComplete |
System.Action | onTransitionCompleteTemporary |
UnityEngine.Events.UnityEvent | onTransitionStart |
string | startState = "" |
PanelPosition[] | states |
float | transitionTime = 1f |
![]() | |
Method | method = Method.Lerp |
RectTransform | panelTransform |
![]() | |
Callback< float, Vector2, Vector2 > | PrepMethod |
Func< float, Vector2, Vector2, Vector2 > | TransitionMethod |
|
inline |
Transition the panel to the collapsed state
|
inline |
Transition the panel to the collapsed state immediately - no animation
|
inline |
Transition the panel to the expanded state
|
inline |
Transition the panel to the expanded state immediately - no animation
|
inlineprotected |
|
get |
|
get |