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 gRntaus · Dec 10, 2012 at 11:58 PM · gameobjecttexturematerial

Adding Texture image to gameobject

I'm currently making a mock up of a very simple level using Unity's gameObjects (cube's, spheres and cylinders). I'm at a point where I am quite happy with the scene in terms of staging and lighting and the animations are progressing as I had planned, I've even begun to insert ambient sound to make the scene feel a bit more real. What I don't like however is that my objects have no texture to them. Some of them simply need flat colour which I am achieving with a material and changing it's RGB value via scripting when necessary. The other objects just come out the default grey and I don't like them.

As I can't export my 3d models to any other software what is the best way to wrap a texture around my object? It will likely be a repeatable pattern (just to give the object some depth and not look so flat), in which case do I need to worry about the actual image at all or can I make it an arbitrary size and simple have it repeat on the object, or will I notice seams where the image repeats itself?

I know that scale doesn't necessarily represent size well in Unity because it all depends on what your camera is set up as that dictates how things scale in the environment so I'm having a hard time trying to get my head around how to best make an image for it.

Moving ahead I will likely make my objects in Blender (with the help of many tutorials) and UV map that way as it seems more robust but for the sake of the scene I already have built I'd like to retro-fit some textures to two cylinders and a flattened cube, is it as simple as just pulling the image onto the material as a texture?

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
Best Answer

Answer by DaveA · Dec 11, 2012 at 12:01 AM

" is it as simple as just pulling the image onto the material as a texture?" Yes, but really, you'll want to come up to speed with Blender and its UV mapping next, it's the way to go. In the mean time, also play with the tiling and offset numbers on the material.

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 gRntaus · Dec 11, 2012 at 12:51 AM 0
Share

Yeah I will definitely swap to Blender for my next scene it was an after thought that I stumbled across once I had the scene basically set up and it's too much of a pain in the bum to go and re-do it all. In the instances of just using cubes and spheres is it still better to export them from blender with a UV mapped texture?

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

10 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

Related Questions

Make a gameobject with textures semitransparent 3 Answers

Can you assign a material to all Items within an Empty Game Object at once? 1 Answer

Can Someone Help Me With Changing Material / Texture On Collision Event 1 Answer

Can see 3D object through itself 0 Answers

How to make emissive maps glow? 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