Click or drag to resize

ControlPointUI Class

A Control Point UI Unity component. It can be used for moving scene objects
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          BrydenWoodUnity.UIElementsControlPointUI

Namespace:  BrydenWoodUnity.UIElements
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class ControlPointUI : MonoBehaviour, 
	IDragHandler, IEventSystemHandler, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, 
	IPointerExitHandler, IEndDragHandler

The ControlPointUI type exposes the following members.

Constructors
  NameDescription
Public methodControlPointUI
Initializes a new instance of the ControlPointUI class
Top
Properties
  NameDescription
Public propertyisSelected
Top
Methods
  NameDescription
Public methodInitialize(ListTransform)
Initiates the component
Public methodInitialize(Transform)
Public methodOnDrag
Called when the element is being dragged
Public methodOnEndDrag
Called when the dragginf stops
Public methodOnPointerDown
Called when the pointer is down on top of the element
Public methodOnPointerEnter
Called when the pointer enters the element
Public methodOnPointerExit
Called when the pointer exits the element
Public methodOnPointerUp
Called when the pointer is up on top of the element
Public methodToggleAxisConstraint
Public methodUpdatePositions
Public methodUpdateUIPosition
Top
Events
  NameDescription
Public eventmoved
Triggered when the element is moved
Public eventonSelected
Public eventstoppedMoving
Top
Fields
  NameDescription
Public fieldaxis
Public fieldaxisConstrain
Public fieldimage
The Image component of the GUI object
Public fieldinitialDiffs
Public fieldmouseOver
The color to be used when the mouse is over the element
Public fieldmovePlane
The type of plane to contrain the movement on (the actual plane will be parallel to this one but with its centre at the initial position of the scene object
Public fieldoriginal
The original color of the Image
Public fieldsceneObject
The gameObject in scene to be moved by this control point
Public fieldselected
The color to be used when the element is clicked
Top
See Also