Skip to content

LedBoardFrameProfile

ClassLEDStudioLEDStudio
public sealed class LedBoardFrameProfile : ScriptableObject

Reusable normalized front-frame cross-section. Curve time is outward distance and curve value is forward rise, both in the range zero to one.

public float Evaluate(float normalizedWidth)

Evaluates the normalized profile at an outward-distance value from zero to one.

Parameters

Name Type
normalizedWidth System.Single

Returns

System.Single

public void SetCurve(AnimationCurve curve)

Replaces the profile with a normalized independent copy of the supplied curve.

Parameters

Name Type
curve UnityEngine.AnimationCurve
public void ApplyPreset(LedBoardFrameStyle style)

Replaces the profile with one of the built-in frame shapes.

Parameters

Name Type
style LEDStudio.LedBoardFrameStyle

public LedBoardFrameProfile()

public AnimationCurve Curve { get; set; }

Returns an independent copy of the normalized profile curve.

Returns

UnityEngine.AnimationCurve

public int ShapeHash { get; }

Stable fingerprint of the normalized keys, tangents, weights, and wrap modes.

Returns

System.Int32