Skip to main content
InaCentaur
Inspiring
May 5, 2025
Question

Hz Typescript Hierarchy GameObject best practices

I had assumed extra geometry would add unnecessary draw calls, so in general, scripts are in empty gameobjects. Howevver in tutorial worlds, I notice specific cubes made for typescript scripts... so now I wonder whether there are best practices or performance considerations that might not apply?? 

Should Hz typescripts be in empty gameobjects or as floating cubes?

 

2 replies

InaCentaur
Inspiring
May 5, 2025

also floating texts... in unity the protocol is to have fewer UI canvas's, so should there be floating texts that can help with organizing but could be less performant in runtime? 

SeeingBlue
Honored Contributor
May 5, 2025

You can ignore the purple cubes ( kaceymon 😲) They are but mere remnants of the past now.

They do not run the script, they still have to be attached to an object of some kind.

Upcoming Events : Performance Pro - UI Unleashed - Building Responsive & Performant Interfaces Thursday June 19th 5:00 PM PT - Register June Programming Calendar