Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetDiscreteIntValue(GameObject, EditorCurveBinding, out int)

Retrieves the discrete integer value that the binding points to.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

GetDiscreteIntValue(GameObject, EditorCurveBinding, int)

public static bool GetDiscreteIntValue(GameObject root, EditorCurveBinding binding, out int data)

Parameters

The root GameObject of the animated hierarchy.

The binding that defines the path and the properties of the value.

data

The resulting integer value, if a value exists.

Returns

Type

Description

boolReturns True if the value exists. False otherwise.

Remarks

Use this method when recording keyframes.