Table of Contents

Class ModifierMixPaths

public class ModifierMixPaths : CGModule, IOnRequestProcessing, IPathProvider
Inheritance
Object
Component
Behaviour
MonoBehaviour
DTVersionedMonoBehaviour
ModifierMixPaths
Implements
Inherited Members

Fields

InPathA

[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path A")]
public CGModuleInputSlot InPathA

Field Value

CGModuleInputSlot

InPathB

[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path B")]
public CGModuleInputSlot InPathB

Field Value

CGModuleInputSlot

OutPath

[HideInInspector]
[OutputSlotInfo(typeof(CGPath))]
public CGModuleOutputSlot OutPath

Field Value

CGModuleOutputSlot

Properties

Mix

Defines how the result is interpolated. Values between -1 for Path A and 1 for Path B

public float Mix { get; set; }

Property Value

float

PathIsClosed

public bool PathIsClosed { get; }

Property Value

bool

Methods

MixPath(CGPath, CGPath, float, List<string>)

Returns the mixed path

[CanBeNull]
public static CGPath MixPath(CGPath pathA, CGPath pathB, float mix, List<string> warningsContainer)

Parameters

pathA CGPath
pathB CGPath
mix float

A value between -1 and 1. -1 will select the path with the most points. 1 will select the other

warningsContainer List<string>

Is filled with warnings raised by the mixing logic

Returns

CGPath

The mixed path

OnSlotDataRequest(CGModuleInputSlot, CGModuleOutputSlot, params CGDataRequestParameter[])

public CGData[] OnSlotDataRequest(CGModuleInputSlot requestedBy, CGModuleOutputSlot requestedSlot, params CGDataRequestParameter[] requests)

Parameters

requestedBy CGModuleInputSlot
requestedSlot CGModuleOutputSlot
requests CGDataRequestParameter[]

Returns

CGData[]