Text entity with background mask

Was this article helpful?
1 out of 1 found this helpful

Comments

4 comments
Date Votes
  • This method is not working properly when set the Billboard property to true. How can I fix this issue?

    0
  • Hi Riley,

    Please, override the DrawText method instead of the Draw method:

     protected override void DrawText(DrawParams data)
                {
                    DrawBackground(data);
                    data.RenderContext.PushRasterizerState();
                    data.RenderContext.SetState(rasterizerStateType.CCW_PolygonFill_NoCullFace_PolygonOffset_Minus3Minus2);
                    base.DrawText(data);
                    data.RenderContext.PopRasterizerState();
                }

    I will modify the article. 

    0
  • Wonderful!!!

    0
  • As you said in the article "The text entity derived in this way can be selected only by clicking on the text (and not on the mask)". How can I fix this issue?

    I found if I click the mask, the application throw an exception which says "the given key is not in the dictionary". Especially, when I set the ActionMode  to SelectVisibleByPickDynamic, every time my cursor hover on the mask, this exception will occur.

     

    Can you help me please? 

    Thanks and Regards,

    0

Please sign in to leave a comment.

Articles in this section