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 ATwig · Jul 01, 2013 at 07:56 PM · c#character

How do I load customized characters into my next scene?

Hello!

For the past week or so I have been modifying the Character Customization framework that was graciously provided by Unity ( http://blogs.unity3d.com/2009/11/25/character-customization-assetbundles/ ) and am finally satisfied with my current results. I do know that this is a little outdated but character customization is not a huge feature of my game.

The next step is, obviously, to load the character(s) into the first level (a new scene) but I am lost as to how to go about doing this... Any help would be greatly appreciated and I believe that a simple shove in the right direction will be more than sufficent.

As a side note I am not too attached to my current method of character customization so if anyone has a good (free) alternative to the one linked above I'd also welcome that. (I have a Unity Pro license that is sponsored through my university so anything that uses assetbundels are fine.)

Thanks!

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by xander999 · Jul 01, 2013 at 10:37 PM

Here's an idea, try making a new customization system that generates a series of random numbers based on the different parts used (Each part has it's own number and they join up) then it is saved as the name of a text file, so then you open the text file on the next scene and the game imports the character?

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 ATwig · Jul 02, 2013 at 04:14 PM 0
Share

The character customizer already had a method that did pretty much exactly that. I just ended up adding this string to the player data class I already made. With a bit of elbow grease I was able to get it to load the pre-customized character with this string but it is hit and miss for when it works.

Thanks for your suggestion though!

avatar image
0

Answer by MiKo51 · Jul 01, 2013 at 11:31 PM

I'm not too familiar with the Character Customization framework but if you want to keep any GameObject into the next scene you can call DontDestroyOnLoad(GameObject toKeep) and that GameObject will not be deleted until you call Destroy on it, even if you change scenes.

DontDestroyOnLoad (transform.gameObject);

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 ATwig · Jul 02, 2013 at 04:15 PM 0
Share

Thanks for the tip!

I've ended up using this elsewhere :P

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

17 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

Related Questions

Multiple Cars not working 1 Answer

error CS0117: `Time' does not contain a definition for `deltaTime' 1 Answer

java to C# 2 Answers

MySql Online Character About 0 Answers

animation.isPlaying always true and Animation stuck at time 0 0 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