Curvy  4.1.0
CurvyControlPointEventArgs Class Reference
+ Inheritance diagram for CurvyControlPointEventArgs:
+ Collaboration diagram for CurvyControlPointEventArgs:

Detailed Description

EventArgs used by CurvyControlPointEvent events

Public Types

enum  ModeEnum { None, AddBefore, AddAfter, Delete }
 Event Mode More...
 

Public Attributes

readonly CurvySplineSegment ControlPoint
 Related Control Point More...
 
readonly ModeEnum Mode
 Determines the action this event was raised for More...
 
- Public Attributes inherited from CurvySplineEventArgs
readonly CurvySpline Spline
 The related spline More...
 
- Public Attributes inherited from CurvyEventArgs
readonly object Data
 Custom data More...
 
readonly MonoBehaviour Sender
 The component raising the event More...
 

Public Member Functions

 CurvyControlPointEventArgs (MonoBehaviour sender, CurvySpline spline, CurvySplineSegment cp, ModeEnum mode=ModeEnum.None, object data=null)
 
- Public Member Functions inherited from CurvySplineEventArgs
 CurvySplineEventArgs (MonoBehaviour sender, CurvySpline spline, object data=null)
 
- Public Member Functions inherited from CurvyEventArgs
 CurvyEventArgs (MonoBehaviour sender, object data)
 

Member Enumeration Documentation

enum ModeEnum
strong

Event Mode

Enumerator
None 

Send for events that are not related to control points adding or removal

AddBefore 

Send when a Control point is added before an existing one

AddAfter 

Send when a Control point is added after an existing one

Delete 

Send when a Control point is deleted

Constructor & Destructor Documentation

CurvyControlPointEventArgs ( MonoBehaviour  sender,
CurvySpline  spline,
CurvySplineSegment  cp,
ModeEnum  mode = ModeEnum.None,
object  data = null 
)

Member Data Documentation

readonly CurvySplineSegment ControlPoint

Related Control Point

readonly ModeEnum Mode

Determines the action this event was raised for


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