Version: 2018.1
Experimental: this API is experimental and might be changed or removed in the future.

GameObjectRecorder.BindComponent

マニュアルに切り替える
public void BindComponent (Component component);

パラメーター

componentThe component to bind.

説明

Adds bindings for all the properties of component.

using UnityEngine;
using UnityEditor;
using UnityEditor.Experimental.Animations;

public class BindComponentScript : MonoBehaviour { void Start() { var recorder = new GameObjectRecorder(gameObject);

// Add bindings for all the properties of the Transform and BoxCollider components. recorder.BindComponent(transform); recorder.BindComponent(GetComponent<BoxCollider>()); } }