unity : transform.find : null
why this is wrongunityで、子Objectを探し、見つかった場合と、見つからなかった場合で処理を分岐したい時があります。しかし、以下のcodeでは例外でstopしてしまします。
GameObject productContainer; // parent Object that contains several (or null) childrenGameObject item;item = productContainer.transform.Find