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 /
avatar image
0
Question by xJames720x · Dec 11, 2014 at 03:49 AM · prefabbug

Prefab or copy of game object behaving strangely.

It is really hard to describe this issue, but I am at a total loss as to how to solve this. I have a 2d character with a really simple character controller that allows him to move back and forth jump etc. Initially, the character in my scene is fine. But if I try and use his prefab in a different scene, or even copy that character in the same scene, he just teleports up and down and is uncontrollable. I have a link to a video showing the behavior:

http://screencast.com/t/fWBcpqB3h

Note that code for the character controller is working perfectly on a previous less animated version of that character. So I am fairly sure it is not related to the character controller code. Also, when using the prefab, I made sure I had applied the changes from the working character to the prefab. Thanks for any help!

EDIT: I have found that the prefab works perfectly as long as it is instantiated at 0, -1.93, 0. Why would that be the case?

Comment
Add comment · Show 1
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 Klarax · Dec 11, 2014 at 11:12 AM 0
Share

http://forum.unity3d.com/threads/instantiate-and-copying-delegates-strange-bug.195961/

something to do with delegates maybe?

Gotta be honest, never had this issue, and never seen it before...

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by MiniFish · Dec 11, 2014 at 06:33 AM

i had a few cases where my prefab objects not behaving they way i want it to, and resolved it by recreating the prefab. not sure if it'll work for you though.

Comment
Add comment · Show 1 · Share
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 xJames720x · Dec 13, 2014 at 04:02 AM 0
Share

Yeah, sadly that doesn't seem to be working either.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why is my prefab spawing underneath my player when facing left but not right? 0 Answers

Unity 3D Terrain Tree Rotation Bug 0 Answers

Generate instances of prefab, then save to GameObject array... How? 1 Answer

Light breaks after entering Play Mode 1 Answer

Prefab randomly broken 2 Answers


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