How make the text indepentent from camera?

I answered the some question on StackOverflow, but no answers.

I need a tooltip messages for unit in game. Message (Text) must be around unity object (for example cube).

Other words, text must be 3D-object. No simple view on camera.

It is example what I need.

Thanks!

I guess you simply want a World Space GUI :

World Space

In this render mode, the Canvas will behave as any other object in the scene. The size of the Canvas can be set manually using its Rect Transform, and UI elements will render in front of or behind other objects in the scene based on 3D placement. This is useful for UIs that are meant to be a part of the world. This is also known as a “diegetic interface”.

World space

https://docs.unity3d.com/Manual/UICanvas.html

https://docs.unity3d.com/Manual/HOWTO-UIWorldSpace.html