Custom pipelines can use this method in order to perform any required pre-batch tasks for the given Game Object. It must return the texture unit the Game Object was assigned.
The Game Object being rendered or added to the batch.
Optional frame to use. Can override that of the Game Object.
The texture unit the Game Object has been assigned.