Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetObjectReferenceValue(GameObject, EditorCurveBinding, out Object)

Retrieves the object value that the binding points to.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetObjectReferenceValue(GameObject, EditorCurveBinding, Object)

public static bool GetObjectReferenceValue(GameObject root, EditorCurveBinding binding, out Object data)

Parameters

The root GameObject of the animated hierarchy.

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

data

The resulting object value, if a value exists.

Returns

Type

Description

boolReturns True if the value exists. False otherwise.

Remarks

Use this method when recording keyframes.