Is StartCoroutine in yield return StartCoroutine (Bar ()); is it necessary?
No, you are allowed to use yield return Bar();.
If we are allowed, does this have any impact on program behavior / performance?
Yes, both in terms of behavior and performance.
Difference :
yield return StartCoroutine(coroutineFunction()):
(Bar)
: 56
: 2
yield return coroutineFunction():
(Bar)
: 32
: 3
, . for , yield return StartCoroutine(coroutineFunction()).
, .
, Time and Self ms Profiler , , yield return StartCoroutine(coroutineFunction()).
:
yielding i++ vs ++i (post pre increment). , yield return coroutineFunction(), .