title: is it okay to mix Canvas objects (rectTransform) with regular game objects (transform), if those game objects have nothing to do with UI?
body: <p>I've ended up in a situation where I have a parent Canvas element for my game's battle system (to display health text, etc), and have a mixture of UI stuff and controllable game objects as it's children. So some of the objects have <code>transform</code>, and others have <code>rectTransform</code>.</p>
  <p>Here's a small sample of my hierarchy:</p>
  <p><a href="https://i.stack.imgur.com/QRIpI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QRIpI.png" alt="https://i.imgur.com/Aa4wovx.png" /></a></p>
  <ul>
  <li>The Parent <strong>BattleCanvas</strong> is a canvas object (<code>rectTransform</code>)</li>
  <li><strong>BattleEnemyObject</strong> and <strong>BattlePlayerObject</strong> are regular gameObjects (<code>transform</code>)</li>
  <li><strong>BattleObjects</strong> (a container for all instantiated objects) uses <code>rectTransform</code>,</li>
  <li>But its child <strong>SnakePlayer</strong> is a regular gameObject (<code>transform</code>)</li>
  </ul>
  <p>I'm beginning to realize how messy this is, but things seem to work fine so far. So my question is, is it okay to mix Canvas stuff (<code>rectTransform</code>) with regular game object stuff (<code>transform</code>), if those game objects have nothing to do with UI?</p>
  <p>I guess I sort of have a lack of understanding of the difference between <code>transform</code> and <code>rectTransform</code>. Any advice here is appreciated!</p>