文档

Unity Engine

Unity Engine

SetTranslationOffset(int, Vector3)

Sets the translation offset associated with a source by index.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void SetTranslationOffset(int index, Vector3 value)

Parameters

index

The index of the constraint source.

value

The new translation offset.

Remarks

Throws InvalidOperationException, if the list of sources is empty. Throws ArgumentOutOfRangeException, if the index is invalid.