IConstraint

interface in UnityEngine.Animations

Switch to Manual

Description

约束组件的通用接口。

Variables

constraintActive激活或停用约束。
locked锁定或解锁静止的偏移和位置。
sourceCount获取组件中目前设置的源的数量。
weight约束组件的权重。

Public Functions

AddSource添加约束源。
GetSource按索引获取约束源。
GetSources获取源的列表。
RemoveSource从组件中移除源。
SetSource设置指定索引处的源。
SetSources设置组件上的源列表。