Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

TextMesh Pro UGUI "Raycast Tartget?" Resets on Scene Load

Discussion in 'UGUI & TextMesh Pro' started by Veersw, Jan 14, 2018.

  1. Veersw

    Veersw

    Joined:
    Nov 14, 2013
    Posts:
    2
    Under "Extra Settings" you can find the "Raycast Target?" option. Un-selecting the option works to make the component not collect rays, HOWEVER, (in my experience), the option does not survive scene load. If you close the scene and reopen(or run your game and load the scene), the option will be checked again. Has anyone else experienced this (or is anyone else able to replicate this)?

    Thanks in advance lads.


    Running Unity 2017.3.0f3, with TextMeshPro 1.0.54 (according to the user Guide).

    upload_2018-1-14_12-56-0.png
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    I am able to reproduce the behavior and looking into it. I'll provide an update as soon as I have more information.

    P.S. To identify the version # of TMP, you can take a look at the names of the DLLs contained in the "TextMesh Pro/Plugins/Editor DLL/..." or "/Runtime DLL/..." folders.

    Update
    I was able to identify the issue which will be fixed in the next release of TMP. Until then, you can get around the issue by toggling any other property on the text object which will indirectly make the change to the Raycast Target save correctly.
     
    Last edited: Jan 14, 2018
    pfay and poukoute like this.
  3. Veersw

    Veersw

    Joined:
    Nov 14, 2013
    Posts:
    2
    No wonder Unity brought you on board. Workaround works like a charm.

    Thanks for the quick reply. :)
     
    Stephan_B likes this.
  4. TheLuckyLuc

    TheLuckyLuc

    Joined:
    Aug 30, 2021
    Posts:
    1
    DAM ! I was having problems with my mouse/touch detection being intermittent after I switched to the new input system (now I know it is after having introduced the raycast component on my camera for the clicks to work with the new input system), so half the time, the clicks did not register... !

    After having seeing your reply to this post (which is BTW unrelated to my problem in regards with the problem reported in this post) I discovered I had TextMeshPro objects intercepting the raycast... I disabled the option on all my text object and BOOM, it just works !

    So a hundred thanks, you inadvertently help me fix the problem for which I have been having nightmare ! :D