Avatar of James Hancock
James Hancock
Flag for United States of America asked on

Game coding in Unity C# - How do I acquire the corner co-ordinates of an image transform?

Hi

I'm interested in acquiring the location coordinates of the corners of a transform ( will be letter tiles ) for various needs.


Below is the co-ordinate of the center of the letter tile:


How do I get the top-left, top-right, bottom-left and bottom-right?

Thanks

towerPic2.transform.localPosition.x, towerPic2.transform.localPosition.y

Open in new window

C#Game Programming

Avatar of undefined
Last Comment
louisfr

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
louisfr

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck