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 velv · Jun 06, 2012 at 12:32 PM · textureresources

into which folder can i import my jpeg files so i can put some texture on a wall obj?

Into which folder (where) can i import my jpeg files so i can put some texture on a wall object?

i have an oBuilding object and i want to put a texture on it. Example:

 oBuilding.renderer.material.mainTexture = Resources.Load("wall_");

The thing is i can't see anything on my building's wall, although i copy/paste the wall_.jpg file to my Resources folder (C:\Program Files\Unity\Editor\Data\Resources).

I suppose there is something wrong with the path, when we refer to Resources folder we mean the path i wrote in the brackets?

Any advice would be appreciated much, thank you all.

Comment
Add comment · Show 4
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 AlucardJay · Jun 06, 2012 at 01:51 PM 1
Share

The Resources folder should be in the project itself : => [YOUR PROJECT] => Assets => Resources

avatar image syclamoth · Jun 06, 2012 at 01:53 PM 1
Share

Why don't you just use a texture asset, and attach it using the inspector? You don't have to load things using string literal filenames in Unity, you know.

avatar image commodore · Jun 06, 2012 at 03:16 PM 0
Share

It's as simple as dragging your material to project view, then dragging it onto the object you want textured. No need to script anything

avatar image velv · Jun 06, 2012 at 06:30 PM 0
Share

Thank you all people. I got the idea thnx to you.

alucardj --> worked like a charm! thnx

commodore --> i had to do it via script. $$anonymous$$y fault, i did not mention it.

I also found some examples with the Color structure. for example: oBuilding.renderer.material.color = Color(0.2, 0.3, 0.4);

that works for me too, for what i have in $$anonymous$$d.

Cheers people.

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Calling Resources.Load on a Texture is returning null 1 Answer

Assets aren't found at runtime 1 Answer

Make reference to the project texture file in the material field 1 Answer

apply jpg texture to game object 1 Answer

Loading textures into an array after build 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