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 0mr_ashutosh0 · Nov 13, 2014 at 11:05 AM · renderingmaterialscene-switchingtheme

Applying Theme to game ?

1) So here i am dealing with a problem to apply some materials to my gameobjects at runtime. i mean from start menu when i select some bunch of colors then in next scene my gameobjects will change to that color. So its a theme. ( Is there any other way ? Please mention ) But i have no idea as to which how i should implement this.

2) Moreover, Please write some description about what things are retain when we change from one scene to another. Recently i learned that to pass numeric score from one scene to another i should use PlayerPrefs. So are there any similar concepts which may cause me trouble when i change scene.

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 hav_ngs_ru · Nov 13, 2014 at 03:27 PM 1
Share
  1. to pass data from one scene to another, you may:

a) create a static class with static members - it will keep it's state when you unload/load scenes.

b) or you can call DontDestroyOnLoad from anywhere in your script attached to GameObject - and from this moment you GameObject will not be destroyed when you loading new scene.

avatar image hav_ngs_ru · Nov 13, 2014 at 03:36 PM 1
Share

speaking about themes - you can change only diffuse colors - in this case all you need to apply scheme - is to change diffuse colors, not necessarily to apply materials.

Or you can change textures (ar even all materials). It will be more difficult and ineffecient for FPS, but it would give to you much more freedom in makng new themes.

As for me - I'd recommend to start with first way.

avatar image 0mr_ashutosh0 · Nov 13, 2014 at 03:43 PM 0
Share

Beautiful and precise answer @hav_ngs_ru thank you so much. will work on first way.

0 Replies

· Add your reply
  • Sort: 

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

Rendering objects into another camera with a different material in HDRP 0 Answers

How to know if my Shader Graph is supported by the SRP Batcher? 1 Answer

Using materials as effects bad practice? 0 Answers

Visual/Texture anomoly .... Never seen this before, image attached 1 Answer

How to save emissive Material assets using "_EMISSION" keyword by script? 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