Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.1K
Views
Unity: How can I put one object on top of another

enter image description here

I need put my 3D Object dynamicly to platform because 3D Object has a different size.

My code is _sceneObject.sceneItem.transform.localPosition = _gobletPlatform.localPosition; but he fixes on it, not on top of it.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Collider platformCollider = (_gobletPlatform.GetComponent<Collider>();
        Vector3 pos = new Vector3 (_gobletPlatform.transform.position.x + platformCollider.bounds.size.x, _gobletPlatform.transform.position.y + platformCollider.bounds.size.y, _gobletPlatform.transform.position.z + platformCollider.bounds.size.z);
_sceneObject.sceneItem.transform.position = pos;

Note: I can't test this now. But, I hope it works.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!