Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jan 09, 2015 at 01:07 PM by meat5000 for the following reason:

The problem is solved.

avatar image
0
Question by IceWraith180 · Jan 09, 2015 at 05:41 AM · instantiatepositionblender

New Blender Model Instantiated wrong position

Hello guys, I am having some issues with an Instantiated belnder model being in the wrong position but the right rotation.

I have two models when clicking on the first model it is destroyed and replaced with another model, this works but the new model's position is wrong, it is floating in the air forward a little from the deleted model.

Both models are wrapped in a empty game object, both are positioned at 0 0 0 inside the empty

The script is very simple

 using UnityEngine;
 using System.Collections;
 
 public class destro : MonoBehaviour {
 
     public GameObject destroyed;
 
     void OnMouseDown() {
         Instantiate (destroyed, transform.position, transform.rotation);
         Destroy (gameObject);
     }
 }
 

But like I said its position is wrong, I am not sure what is causing the issues

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hypnoticmeteor · Jan 09, 2015 at 05:47 AM 0
Share

Check if the pivot you use is local or world. Should be same for both. Only thing I can think of.

avatar image IceWraith180 · Jan 09, 2015 at 12:45 PM 0
Share

It was something to do with Parent and Child, I did fix it in the end but unsure how! Somthing simple without a doubt as it always turns out to be, Thanks for the advice guys!

avatar image meat5000 ♦ · Jan 09, 2015 at 01:05 PM 0
Share

Are you instantiating a model or a prefab? A prefab would be better.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I get the global position 2 Answers

How to follow multiple clones positions of an instantiate prefab having a velocity ? 1 Answer

Object instantiates on top of the previous object 2 Answers

How to instantly move a newly instantiated prefab? 2 Answers

Help with moving instantiated object's transform 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges