Table of Contents

Class CurvyMetadataBase

Base class for all Metadata classes. A Metadata is a custom data attached to a Control Point

[RequireComponent(typeof(CurvySplineSegment))]
[ExecuteAlways]
public abstract class CurvyMetadataBase : DTVersionedMonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
DTVersionedMonoBehaviour
CurvyMetadataBase
Derived

Properties

ControlPoint

public CurvySplineSegment ControlPoint { get; }

Property Value

CurvySplineSegment

Spline

public CurvySpline Spline { get; }

Property Value

CurvySpline

Methods

GetNextData<T>(bool, bool, bool)

public T GetNextData<T>(bool autoCreate = true, bool segmentsOnly = true, bool useFollowUp = false) where T : CurvyMetadataBase

Parameters

autoCreate bool
segmentsOnly bool
useFollowUp bool

Returns

T

Type Parameters

T

GetPreviousData<T>(bool, bool, bool)

public T GetPreviousData<T>(bool autoCreate = true, bool segmentsOnly = true, bool useFollowUp = false) where T : CurvyMetadataBase

Parameters

autoCreate bool
segmentsOnly bool
useFollowUp bool

Returns

T

Type Parameters

T

NotifyModification()

Call this to make the owner spline send an event to notify its listeners of the change in the spline data.

protected void NotifyModification()