Skip to content

writing text to image #47

@unitycoder

Description

@unitycoder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions