はじめに
m_sphere.SetParent( m_cube, true );
Transform.SetParent の第2引数には bool 値を渡すことができます
この bool 値に true、false を渡した時に何が変わるのか書き残しておきます
例
このようにシーンに Cube と Sphere が存在する場合に
Cube を Sphere の親に設定してみます
true を渡す場合
m_sphere.SetParent( m_cube, true );
ワールド座標系における Sphere の位置や大きさが維持されます
false を渡す場合
m_sphere.SetParent( m_cube, false );
ローカル座標系における Sphere の位置や大きさが維持されます
参考ツイート
transform.SetParent has another parameter very useful. [The sphere has the script] #unitytips pic.twitter.com/Yl7W4aqnpT
— a bonfire of souls (@abonfireofsouls) 2018年3月13日