Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PPtrCurve(string, Type, string)

Creates a preconfigured binding for a curve that points to an Object.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static EditorCurveBinding PPtrCurve(string inPath, Type inType, string inPropertyName)

Parameters

inPath

The transform path to the object to animate.

inType

The type of the object to animate.

inPropertyName

The name of the property to animate on the object.

Returns

Type

Description

EditorCurveBindingThe new EditorCurveBinding.

Remarks

Use PPtr curves for curves that manipulate references to Objects. For example, use EditorCurveBinding.PPtrCurve for Material curves or Sprite curves.