ドキュメント

Unity Engine

Unity Engine

Opacity

The opacity multiplier applied to the transition.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

float Opacity { get; set; }

Remarks

The opacity multiplier is clamped to the [0, 1] range when set. On a transition between two states, this property fades the transition wire and leaves the arrow solid. On a self transition, this property fades the transition arrow's border, leaving the arrow head solid.

Examples

ITransition startTransition = myStateMachine.GetTransitions(startState, nextState).First();startTransition.Opacity = 0.5f;