Lemmings
Remappable Gestures For Unity
Loading...
Searching...
No Matches
Lemmings.RelationshipPreviewUtility Class Reference

This is a utility wrapper for the RelationshipPreview class to make it easier to use. example = Vector3 previewPos = RelationshipPreviewUtility.PreviewPosition(relationship);. More...

Static Public Member Functions

static Vector3 PreviewPosition (LemmingRelationship relationship)
 Previews the position metric for a given relationship, regardless of family type.
static Quaternion PreviewRotation (LemmingRelationship relationship)
 Previews the rotation metric for a given relationship, regardless of family type.
static float PreviewFloat< TEnum > (LemmingRelationship relationship, TEnum metric, float? min=null, float? max=null, LemmingRelationSetting settings=null)
 Previews the raw float value for a custom metric with optional settings and bounds.

Static Private Member Functions

static System.Enum GetPositionMetric (FamilyType type)
 Returns the correct "Position" metric enum for the given family type.
static System.Enum GetRotationMetric (FamilyType type)
 Returns the correct "Rotation" metric enum for the given family type.

Detailed Description

This is a utility wrapper for the RelationshipPreview class to make it easier to use. example = Vector3 previewPos = RelationshipPreviewUtility.PreviewPosition(relationship);.

Member Function Documentation

◆ PreviewFloat< TEnum >()

float Lemmings.RelationshipPreviewUtility.PreviewFloat< TEnum > ( LemmingRelationship relationship,
TEnum metric,
float? min = null,
float? max = null,
LemmingRelationSetting settings = null )
inlinestatic

Previews the raw float value for a custom metric with optional settings and bounds.

Type Constraints
TEnum :System.Enum 

The documentation for this class was generated from the following file:
  • Assets/Lemmings/Scripts/Namespace/LemmingUtilities.cs