API ReferenceSandbox
public sealed struct Sandbox.Curve
Describes a curve, which can have multiple key frames.
Related Guides
Broader workflow and conceptual references connected to this API.
Constructors
Showing 4 constructors
No results match this filter.
Methods
Showing 16 methods
public bool AddOrReplacePoint(Sandbox.Curve.Frame keyframe)
Add given keyframe to this curve.
Returns
True if we added a new point. False if we just edited an existing point.
public void Fix()
If the curve is broken in some way, we can fix it here. Ensures correct time and value ranges, and that the curve has at least one point.
public void RemoveAtTime(float time, float within)
Remove all of the frames at the current time
public Sandbox.Curve Reverse()
Make a copy of this curve that is reversed (If input eases from 0 to 1 then output will ease from 1 to 0)
public void Sort()
Make sure we're all sorted by time
public void UpdateTimeRange(Vector2 newRange, bool retainTimes)
public void UpdateValueRange(Vector2 newRange, bool retainValues)
No results match this filter.
Properties
Showing 4 properties
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:Sandbox.Curve |