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 Fr0stbite · Aug 12, 2013 at 07:38 PM · charactercustomizationseed

Character Code like Minecraft?

I wrote a character customization script and how can i make a code like a seed in minecraft?For example to share your character's look.Thx

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by lancer · Aug 12, 2013 at 07:44 PM

You would have to make it so that the game can generate a code based on how your character looks that can be read by all the clients.

For Example:

Code: 12568912
12 = red hair
56 = blue shirt
89 = green pants
12 = red shoes

Comment
Add comment · Show 3 · 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 Fr0stbite · Aug 12, 2013 at 07:50 PM 0
Share

yeah but i use this to edit character:

 if(TorsoTransform.active == false){TorsoTransform.active = true;}
 if(Torso == 1){TorsoTransform.active = false;TorsoTransform = T1;TorsoTransform.active = true;}
 if(Torso == 2){TorsoTransform.active = false;TorsoTransform = T2;TorsoTransform.active = true;}
 if(Torso == 3){TorsoTransform.active = false;TorsoTransform = T3;TorsoTransform.active = true;}
 if(Torso == 4){TorsoTransform.active = false;TorsoTransform = T4;TorsoTransform.active = true;}
 if(Torso == 5){TorsoTransform.active = false;TorsoTransform = T5;TorsoTransform.active = true;}
 if(Torso == 6){TorsoTransform.active = false;TorsoTransform = T6;TorsoTransform.active = true;}
 if(Torso == 7){TorsoTransform.active = false;TorsoTransform = T7;TorsoTransform.active = true;}
 if(Torso == 8){TorsoTransform.active = false;TorsoTransform = T8;TorsoTransform.active = true;}
 if(Torso == 9){TorsoTransform.active = false;TorsoTransform = T9;TorsoTransform.active = true;}
 if(Torso == 10){TorsoTransform.active = false;TorsoTransform = T10;TorsoTransform.active = true;}
 //Hip
 if(HipTransform.active == false){HipTransform.active = true;}
 if(Hips == 1){HipTransform.active = false;HipTransform = P1;HipTransform.active = true;}
 if(Hips == 2){HipTransform.active = false;HipTransform = P2;HipTransform.active = true;}
 if(Hips == 3){HipTransform.active = false;HipTransform = P3;HipTransform.active = true;}
 //Leg
 if(LegTransform.active == false){LegTransform.active = true;}
 if(Leg == 1){LegTransform.active = false;LegTransform = L1;LegTransform.active = true;}
 if(Leg == 2){LegTransform.active = false;LegTransform = L2;LegTransform.active = true;}
 if(Leg == 3){LegTransform.active = false;LegTransform = L3;LegTransform.active = true;}
 if(Leg == 4){LegTransform.active = false;LegTransform = L4;LegTransform.active = true;}
 
 function OnGUI () {
 var rx : float = Screen.width / native_width;
         var ry : float = Screen.height / native_height;
         GUI.matrix = $$anonymous$$atrix4x4.TRS (Vector3(0, 0, 0), Quaternion.identity, Vector3 (rx, ry, 1)); 
 
 //Torso
 if (GUI.Button (Rect (900, 350, 20, 20), "+")) {
 Torso ++;
 }
 if (GUI.Button (Rect (600, 350, 20, 20), "-")) {
 Torso --;
 }
 //Hips
 if (GUI.Button (Rect (900, 550, 20, 20), "+")) {
 Hips ++;
 }
 if (GUI.Button (Rect (600, 550, 20, 20), "-")) {
 Hips --;
 }
 //Leg
 if (GUI.Button (Rect (900, 650, 20, 20), "+")) {
 Leg ++;
 }
 if (GUI.Button (Rect (600, 650, 20, 20), "-")) {
 Leg --;
 }
avatar image save · Aug 12, 2013 at 08:06 PM 0
Share

Your seed is right in front of you, you just have to plant it... :-)

 var seed : String = Torso.ToString()+","+Hips.ToString()+","+Leg.ToString();

Then iterate through it where you for instance use "," as separator:

 var splitSeed : String[] = seed.Split(","[0]);

Finally bring it home:

 Torso = parseInt(splitSeed[0]);
avatar image Fr0stbite · Aug 13, 2013 at 07:56 AM 0
Share

the seed is not change when i change the leg or etc.

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

16 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

Related Questions

Caracter customization 1 Answer

Can't change the speed of a character. 2 Answers

How do I change what my Character looks like using paint 3d?,How do I edit my characters appearance using paint 3d? 0 Answers

Character Customization Spawn 0 Answers

Character customisation demo - errors in 2.6 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