Click or drag to resize

Window Class

Base class for all screens. Handles animation, sound and events.
Inheritance Hierarchy

Namespace:  Kit.UI
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class Window : MonoBehaviour
Request Example View Source

The Window type exposes the following members.

Properties
  NameDescription
Public propertyData
Gets or sets window data. Calls Refresh when setting so the UI updates.
Public propertyIsBusy
Returns whether the window is showing or hiding.
Public propertyIsHidden
Returns whether the window is hidden.
Public propertyIsShown
Returns whether the window is shown.
Public propertyState
Current window state.
Top
Methods
  NameDescription
Public methodHide(WindowHideMode)
Hide the window.
Public methodHide(String, WindowHideMode)
Hide the window using a particular animation.
Public methodMarkAsInstance
Mark the window as one not already in the scene. Called automatically.
Public methodRefresh
Method that gets called when Data is updated. Child classes should override this method and update the UI here.
Public methodShow(Object)
Show the window.
Public methodShow(String, Object)
Show the window using a particular animation.
Top
Fields
  NameDescription
Public fieldHidden
Stuff to do when the screen has hidden.
Public fieldHideAnimation
The animation state to play when hiding the screen.
Public fieldHideSound
The audio to play when hiding.
Public fieldHiding
Stuff to do when hiding the screen.
Public fieldShowAnimation
The animation state to play when showing the screen.
Public fieldShowing
Stuff to do when showing the screen.
Public fieldShown
Stuff to do when the screen has shown.
Public fieldShowSound
The audio to play when showing.
Public fieldTrack
Whether to track the Window in UIManager.
Top
Extension Methods
  NameDescription
Public Extension MethodDestroy
Destroy the object.
(Defined by UnityObjectExtensions.)
Public Extension MethodDisable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodEnable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodGetBounds

Returns the bounds of the Component.

(Defined by ComponentExtensions.)
Public Extension MethodIsPrefab
Returns whether the Component is a part of a prefab.
(Defined by ComponentExtensions.)
Top
See Also