Class ModifierMixPaths
- Namespace
- FluffyUnderware.Curvy.Generator.Modules
public class ModifierMixPaths : CGModule, IOnRequestProcessing, IPathProvider
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourModifierMixPaths
- Implements
- Inherited Members
Fields
InPathA
[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path A")]
public CGModuleInputSlot InPathA
Field Value
InPathB
[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path B")]
public CGModuleInputSlot InPathB
Field Value
OutPath
[HideInInspector]
[OutputSlotInfo(typeof(CGPath))]
public CGModuleOutputSlot OutPath
Field Value
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
PathIsClosed
public bool PathIsClosed { get; }
Property Value
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
pathACGPathpathBCGPathmixfloatA value between -1 and 1. -1 will select the path with the most points. 1 will select the other
warningsContainerList<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
requestedByCGModuleInputSlotrequestedSlotCGModuleOutputSlotrequestsCGDataRequestParameter[]
Returns
- CGData[]