Windward
Action-adventure RPG available on Steam Early Access
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Public Member Functions | Public Attributes | Properties | List of all members
UIFollowTarget Class Reference

Attaching this script to an object will make it visibly follow another object, even if the two are using different cameras to draw them. More...

Inheritance diagram for UIFollowTarget:

Public Member Functions

delegate void OnVisibilityChange (bool isVisible)
 

Public Attributes

OnVisibilityChange onChange
 Callback triggered every time the object becomes visible or invisible. More...
 
Transform target
 3D target that this object will be positioned above. More...
 
Camera gameCamera
 Game camera to use. More...
 
Camera uiCamera
 UI camera to use. More...
 
bool disableIfInvisible = true
 Whether the children will be disabled when this object is no longer visible. More...
 
bool destroyWithTarget = true
 Destroy the game object when target disappears. More...
 

Properties

bool isVisible [get]
 Whether the target is currently visible or not. More...
 

Detailed Description

Attaching this script to an object will make it visibly follow another object, even if the two are using different cameras to draw them.

Member Function Documentation

delegate void UIFollowTarget.OnVisibilityChange ( bool  isVisible)

Member Data Documentation

bool UIFollowTarget.destroyWithTarget = true

Destroy the game object when target disappears.

bool UIFollowTarget.disableIfInvisible = true

Whether the children will be disabled when this object is no longer visible.

Camera UIFollowTarget.gameCamera

Game camera to use.

OnVisibilityChange UIFollowTarget.onChange

Callback triggered every time the object becomes visible or invisible.

Transform UIFollowTarget.target

3D target that this object will be positioned above.

Camera UIFollowTarget.uiCamera

UI camera to use.

Property Documentation

bool UIFollowTarget.isVisible
get

Whether the target is currently visible or not.


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