-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
someone asked about adding text feature, like in regular painting programs.
i don't think there is any simple way to do that, some ideas here:
- create text tool using UI text, then create rendertexture from that text (with transparent background), then use that as a custom brush to splat into image
- create ready custom brushes for each a-z character, then when user types text, splat those brushes into texture (gets complicated if need to support all characters)
and some info, here the custombrush stamping happens:
https://github.com/unitycoder/UnityMobilePaint/blob/master/Assets/MobilePaint/Scripts/MobilePaint.cs#L1096