Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by hillamanda · Jan 01, 2016 at 09:09 PM · uiscript.scenegamemultiplayer-networking

How do I code one Ball to be a universal player?

Hello to all that read my request and thank you for taking part of your time to consider assisting me. I'm fairly new to Unity, so hopefully you would understand what kind of struggle I'm having with trying to create a big game. This is my situation, my bowling game contains 9 balls. It has three scenes just for these balls; therefore, there are three scenes and three balls on each scene.All of them have different materials on them. I've come to realize that it would be way more convenient if I could make one ball option scene (opposed to three) .Then, figure out how to make one ball and cause it to change it's material every time the player clicks on it.Afterwards, I need my game to recognize what material the ball options menu has and cause the ball the player uses in the game to have that same material.Most importantly, I need it to also work for my multiplayer option I'm working on; it can't be finished unless I find a way to make ball option scene to work in the way I asked.The reason why is because NetworkManager only has one slot for the player prefab and I want to use all of my materials for my balls in my game. So as you can see,the one ball option scene design would be extremely convenient for me and the player for many important reasons due to my specific plans for my game.Right now, I have absolutely no clue how this should be done.I don't know where else to go to find the information I need.I'm very impressed of how many of you here are highly advanced experts on Unity. My goal is to become at the level of mastery of Unity some of you are! Can any of you lend me some detailed advice on how to do this? Any help at all would be immensely appreciated!

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 hillamanda · Jan 02, 2016 at 06:10 PM 0
Share

@ElementalVenom, I'm not sure if you understand what I asking for.I'm sorry if what I said is unclear. What I mean to say is that I just want to have one ball option scene with one ball in it acting as a universal model for all of the nine balls that I have; it will be like there's nine balls in one. That universal model should behave as a button; every time a player click or press it, the model should change it's material.For example, the universal ball model may display a Earth material on it.However, if a player presses on the ball model, it will change it's material to something else ($$anonymous$$ars for example).If the player keep pressing on the model, it will keeping changing through the nine materials.(Just to let you know, all nine of my bowling balls resemble either a planet or galaxy, so that's why I used Earth and $$anonymous$$ars as an example.) I want my game to look at whatever material is presented on the universal ball model and change the player's ball (that will be used to play with) to match that material on the model. I hope this explanation clears everything up!

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by ElementalVenom · Jan 02, 2016 at 04:11 AM

Make it into a prefab. Drag it from the hierarchy to the assets folder. It should then glow blue in the hierarchy and when you edit it just hit apply in the top left of the inspector.

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

Answer by hillamanda · Jan 04, 2016 at 11:59 PM

I just found a genius way of doing what I wanted! I'm in the process of making the scripts for it right now.I'm making the scripts and I'm going to test it on one of my other games.Then, I'll code my bowling game the same way.When I'm finished, I'll come back and share what I have done.

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

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

53 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 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

Post time at the end of the level 0 Answers

My project's UI keeps resizing itself and I have no idea why. 0 Answers

Spawn prefab on UI button click 0 Answers

How can i show my cursor in my inventory menu? 0 Answers

Can one scene have two NetworkManagers? 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