Question by
Victorv88 · Mar 20, 2020 at 12:51 PM ·
gameobjectcollidertextmeshonclick
Creating OnMouseDown() action An object that contains 5 TextMeshPro in an horizontal layout group.
I have this scroll view:
And at Content object i have a script that dynamic generates this horizontal layout of TextMeshPro:
So, I'm trying to create OnMouseDown event on PortfolioLineObject but if I create it as I normally do (Create box collider and add a script) , it doesn't work.
capture2.png
(4.0 kB)
capture1.png
(4.5 kB)
Comment
Your answer
Follow this Question
Related Questions
How to Destroy A GameObject when it enters any Triggers 2 Answers
How to make an object move to the direction in which the user faces using vr gaze interaction? 1 Answer
GameObjects "virabte" when colliding with each other. 0 Answers
Im having trouble figuring out a way to make these two functions work. 1 Answer