Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro SelectionBase and TextMeshPro

Discussion in 'UGUI & TextMesh Pro' started by petey, Oct 28, 2017.

  1. petey

    petey

    Joined:
    May 20, 2009
    Posts:
    1,817
    Hi All,
    I just found this handy thing the other day 'SectionBase'-
    https://docs.unity3d.com/ScriptReference/SelectionBaseAttribute.html
    It's really handy for controlling what objects are selected in the viewport.
    But it doesn't work with TextMeshPro for some reason...

    I created a basic selection base script and applied it to the 'Base' object here -

    Selecting the 'Sphere' object diverts the selection to 'Base' (which is what I want) but selecting 'Text Mesh' just keeps 'Text Mesh' as the selection.
    Any ideas why that might be?
    Thanks,
    Pete