Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 Iced_Ham · Nov 15, 2013 at 12:35 PM · colouropacity

how to change the colour or opacity of a sphere

i'm a bit new at Unity, i mean i'm being taught how to use it at school and i haven't been told how to change the colour or the opacity of my object. i was wondering if someone could help me with this. please help me.

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 Iced_Ham · Nov 15, 2013 at 12:32 PM 0
Share

i want my sphere to look like glass

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by ArkaneX · Nov 15, 2013 at 12:38 PM

You have to do this via material and shader. Take a look at this tutorial.

EDIT: for glass you have to use specific shader - take a look at shaders at Unity Wiki.

Comment
Add comment · Show 5 · 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 Iced_Ham · Nov 15, 2013 at 01:31 PM 0
Share

thank you

avatar image Iced_Ham · Nov 15, 2013 at 01:35 PM 0
Share

what do i click to get to the shader

avatar image ArkaneX · Nov 15, 2013 at 01:45 PM 0
Share

You can set shader on a material, but you have to create new material first and assign it to your sphere.

avatar image Iced_Ham · Nov 15, 2013 at 01:51 PM 0
Share

which is what i've done what now

avatar image ArkaneX · Nov 15, 2013 at 02:07 PM 0
Share

I don't understand - if you did it, then you're able to change shaders. If you don't know how to change shader, please take a look at the page linked by @tanoshimi. It is explained there.

avatar image
0

Answer by tanoshimi · Nov 15, 2013 at 12:41 PM

The visual appearance of every gameobject is determined by the material(s) assigned to it. Materials define colours, textures, and shaders that determine how the object interacts with light in the scene.

Making a material behave like glass is more complicated than simply making it (semi-)transparent - you need to consider reflection, refraction, fresnel effect, viewer and lighting angle etc. - but learning how to apply a transparent material is a good start, so try reading up on that ;)

Comment
Add comment · Show 7 · 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 Iced_Ham · Nov 15, 2013 at 01:36 PM 0
Share

well then can you help me make it semi transparent please

avatar image tanoshimi · Nov 15, 2013 at 01:43 PM 0
Share

"Helping" someone implies that they're putting in a bit of effort themselves too.... did you read the links provided? What have you tried? Which bit did you get stuck on?

You need to change the shader of the material on the object to one that supports transparency. Try Transparent/Diffuse for starters. Then click to change the main colour and set the alpha channel to something less than 100%

alt text

avatar image Iced_Ham · Nov 15, 2013 at 01:52 PM 0
Share

so making it look like glass by adding a shader is how i do it?

avatar image Iced_Ham · Nov 15, 2013 at 01:54 PM 0
Share

if i were to copy and past the coding would i past it into my player object and to lower the opacity which part of the coding would i change http://wiki.unity3d.com/index.php/Transparent_Single_Color_Shader

avatar image Iced_Ham · Nov 15, 2013 at 02:04 PM 0
Share

i am putting in some effort

Show more comments
avatar image
0

Answer by pandolfini · Apr 02, 2021 at 03:37 PM

Go to any folder and right click. Choose "Create -> Material" and proceed to edit the albedo color to be what you want it to be. If you alter the transparency, which sounds like what you want to do, the key thing is that you have to change the material's render mode to "Transparent"--if it is set to opaque it will ignore your alpha choice on your material. Go to your object's mesh renderer, toggle "Materials," and change Element 0 to be your material by either dropping it in or clicking the little target doodad and picking your material from the list.

I'm not sure why everyone else here is a dick and provided useless links you could find yourself on Google. The point of this forum is to provide answers.

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

20 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

Related Questions

Define the alpha on a GUI material component (in editor) 1 Answer

Detect If Object Is Within Range Of Player To Change Object Opacity 1 Answer

Changing bump map opacity. 0 Answers

Changing the colour of all of the gameobjects in a list C# 1 Answer

Invert Colours ?! 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