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 /
avatar image
0
Question by brenolimaa96 · Apr 13, 2016 at 10:14 AM · 2dprefabinspectortileground

How to change only 1 game object

I've created some grounds to my level, however when i change tileset of one of them, all others change the tileset. how can i just modify each ground with a different number of tileset ? remembering that those grounds aren't children of other gameobject Sorry for the noob question guys.

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 KaushikRahul · Apr 13, 2016 at 10:27 AM 0
Share

Grounds? Please elaborate...

And if you are talking about the Tiling property under materials, then obviously it will affect the other GameObjects as well (on which the same material has been applied to). So if you don't want that then assign different material to your different GameObjects.

avatar image TwinPrime · Apr 13, 2016 at 10:36 AM 0
Share

R u Generating those grounds? or those are prefix I mean u put them? or code puts them? Because when u clone them. Its more easy to change them. I mean, there's lots of ways to solve this problem, u can find the position of this gameobject. u can find it with raycast or Collider hit stuff. Or like u said, with a ID number. Its very easy. Just give us some more details.

u can change names;

 Gameobject.name = Gameobject.name+i.toString(); // i is our increment number
  i++;


avatar image brenolimaa96 · Apr 13, 2016 at 04:24 PM 0
Share

alt text

So should I overload my game with a lot of the same materials just to modify each game object without affecting anothers ? here's a screen of what is happening to who didnt understand. When i edit the property of tiling the others chao changes it too. I dont want this. Should i create a folder with a lot of the same materials ?

problem.jpg (47.7 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by aditya · Apr 13, 2016 at 10:40 AM

Use different materials for different GROUNDS coz changing tileset of grounds is not changing tileset of that ground but changing an attribute of a material which is shared by all of your GROUNDS

Comment
Add comment · Show 2 · 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 brenolimaa96 · Apr 15, 2016 at 09:59 AM 0
Share

Thanks man. that's the point, when i alter the tiling of the material i used in the game objects all them modify it together. i dont know if its correct to use many "same materials", wouldn't it overload my scene view? @aditya

avatar image aditya brenolimaa96 · Apr 15, 2016 at 10:05 AM 0
Share

the overload will be so small that you can't even notice it while running the game, make two material with different names, different tile sets but with same texture and assign them to your desired GROUNDS and everything will be fine

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

2D Tilemap prefab brush doesn't paint the tile in the right place 0 Answers

2D game level building best practice 1 Answer

Instantied 2D Prefab Is Invisible 1 Answer

Texture Max Size Value related rule 1 Answer

Infinity runner - best way to spawn board in runtime. 0 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