Class VisualFxManager
Inheritance
VisualFxManager
Syntax
public class VisualFxManager : MonoBehaviour
Fields
ActivePulseManagers
Declaration
public static List<GameObject> ActivePulseManagers
Field Value
| Type |
Description |
| List<GameObject> |
|
PulseDuration
Declaration
public static float PulseDuration
Field Value
PulseInterval
Declaration
public static float PulseInterval
Field Value
Properties
HighlightSquares
Declaration
public static List<GameObject> HighlightSquares { get; set; }
Property Value
| Type |
Description |
| List<GameObject> |
|
Instance
Declaration
public static VisualFxManager Instance { get; set; }
Property Value
PulseRings
Declaration
public static List<GameObject> PulseRings { get; set; }
Property Value
| Type |
Description |
| List<GameObject> |
|
VisualFxCanvases
Declaration
public static List<GameObject> VisualFxCanvases { get; set; }
Property Value
| Type |
Description |
| List<GameObject> |
|
Methods
MakeHighlightSquare()
Create and add a new PulseRing to the object pool.
Declaration
public static GameObject MakeHighlightSquare()
Returns
| Type |
Description |
| GameObject |
|
MakePulseRing()
Create and add a new PulseRing to the object pool.
Declaration
public static GameObject MakePulseRing()
Returns
| Type |
Description |
| GameObject |
|
MakeVisualFxCanvas()
Create and add a new VisualFxCanvas to the object pool.
Declaration
public static GameObject MakeVisualFxCanvas()
Returns
| Type |
Description |
| GameObject |
|
ReturnHighlightSquare(GameObject)
Return square GameObject to the pool for later use.
Declaration
public static void ReturnHighlightSquare(GameObject square)
Parameters
| Type |
Name |
Description |
| GameObject |
square |
GameObject with RawImage of square
|
ReturnPulseRing(GameObject)
Declaration
public static void ReturnPulseRing(GameObject ring)
Parameters
| Type |
Name |
Description |
| GameObject |
ring |
|
ReturnVisualFxCanvas(GameObject)
Return ring GameObject to the pool for later use.
Declaration
public static void ReturnVisualFxCanvas(GameObject canvasObj)
Parameters
| Type |
Name |
Description |
| GameObject |
canvasObj |
|
Declaration
public static void SetUp(Transform parentTransform)
Parameters
| Type |
Name |
Description |
| Transform |
parentTransform |
|
TriggerDragFeedback(Boolean, Vector3)
Creates a new DragFeedback GameObject on start of drag, positioned at point of click.
Moves this GameObject until final drag release. Destroys GameObject at that point.
Cannot use the same GameObject between drags due to TrailRenderer.Clear() not clearing previous positions properly,
and LineRenderer not clearing previous positions when setting positionCount = 0 or SetPositions() with an empty Vector3 array.
Declaration
public void TriggerDragFeedback(bool isEndDrag, Vector3 position)
Parameters
| Type |
Name |
Description |
| Boolean |
isEndDrag |
|
| Vector3 |
position |
|
TriggerHighlightAroundTarget(GameObject)
Declaration
public void TriggerHighlightAroundTarget(GameObject target)
Parameters
| Type |
Name |
Description |
| GameObject |
target |
|
TriggerPulseOnTarget(GameObject)
Declaration
public void TriggerPulseOnTarget(GameObject target)
Parameters
| Type |
Name |
Description |
| GameObject |
target |
|
TriggerPulseOnTarget(Vector3)
Declaration
public void TriggerPulseOnTarget(Vector3 target)
Parameters
| Type |
Name |
Description |
| Vector3 |
target |
|