Hi there. C# Newbie trying to do something super simple but now spent 5 nights trying with no progress (been reading the Unity manual, Scripting APIs & watching videos alongside my own attempts at scripting this).
I'm working in 2D and have a stationary square, and a circle that drops through the square. I'm trying to get the script in the square to make the circle turn red with they collide (I'm trying to tell the circle to turn red on collision, specifically from the script in the square).
Any help, or links to relevant info would be immensely appreciated.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
139 People are following this question.
2d : Hexagonal Grid Beginner
Detect whether a Rigidbody collided with a Trigger
How can i make pause menu
Checking if the player jumps while not grounded
2d - Check if point is within bounds, rotation