1

I want to render placeholder inside text to allow drag and drop behavior on those placeholders like this image

enter image description here

What I want here is how to render this placeholder inside the text object, or even how to place them if the text length is not determined yet

Mustafa Magdy
  • 1,230
  • 5
  • 28
  • 44
  • Possible duplicate of [Unity Drag and Drop](https://stackoverflow.com/questions/49461955/unity-drag-and-drop) – Eliasar Aug 09 '18 at 18:23
  • No, I'm not referring to create drag and drop behavior in unity, what I'm asking for is how to render placeholders within text objects in unity, then I can apply drag and drop behavior to them – Mustafa Magdy Aug 09 '18 at 18:35
  • I would split up your text. [Static Text] [Object to render], [Static Text] [Object to render] – Eliasar Aug 09 '18 at 18:36
  • Yes, I thought of this, but this is not a generic solution, also the different screen resolution, font sizes, and other UI aspects will make this solution even unreliable. – Mustafa Magdy Aug 09 '18 at 18:38
  • If your objects that you're rendering on drag and drop take similar properties to your text, then you can scale them however (and at the same rate) you like. Prefabs will help immensely. – Eliasar Aug 09 '18 at 18:39
  • Yes, but before the dragged text goes to the placeholder, how can I render the placeholder itself? – Mustafa Magdy Aug 09 '18 at 21:44

0 Answers0