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
2
Question by user-10287 (google) · Mar 15, 2011 at 12:38 AM · invisible-object

invisible walls

how can i make invisible walls so i dont have to put a huge rock face to keep the player out of the end of the map

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

3 Replies

· Add your reply
  • Sort: 
avatar image
10

Answer by networkZombie · Mar 15, 2011 at 12:40 AM

make wall shaped cubes and in the inspector uncheck mesh renderer

Comment
Add comment · Show 3 · 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 Velketor · Mar 15, 2011 at 03:20 AM 0
Share

make sure they all have colliders. don't check "trigger" either.

also, planes don't always work as well as cubes for collisions at high speed. to be safe, use cubes always.

$$anonymous$$

avatar image JJNCreator · May 03, 2012 at 07:43 PM 0
Share

i have a day night cycle. i did the wall shaped cubes and it worked out perfectly, but its in the way of the sun. any suggestions?

avatar image luniac · Jul 18, 2012 at 01:27 AM 1
Share

perhaps you can put the wall shaped cubes in a special layer that the sun can ignore?

avatar image
4

Answer by ash_richie · Mar 16, 2016 at 03:05 PM

Use a cube as your wall

and in the inspector UNCHECK the MESH RENDER

alt text

AND ALSO IN LAYER CHOOSE TransparentFX

alt text

 m.png (10.0 kB)

 l.png (10.7 kB)


m.png (10.0 kB)
l.png (10.7 kB)
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 Chakibboo · Jul 14, 2018 at 08:45 PM 0
Share

thanks bro :) UP

avatar image
1

Answer by Jaakk0S · Jan 16, 2021 at 04:13 AM

I found that using a single cube works not, cos the BoxCollider fills and collides with everything inside it.

Make a prefab with 4 cubes under an empty gameobject. Remove the cubes' Mesh Filter and Mesh Renderer. Leave the BoxColliders. Mould the cubes into flat "fences". Give them coordinates to match the grid. I used a length of 50 each, rotated 2 of them 90 degrees, place them at 25 and -25... you get the picture... until they form a rectangular closed fence.

You can reuse the prefab and scale it to desired dimensions.

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

6 People are following this question.

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

Related Questions

Model shows in "Game" preview, but not in actual game 2 Answers

I can only view my objects in 2d mode??? 0 Answers

Character turns invisable on build 0 Answers

Instantiated object is not visible in game 2 Answers

nothing is visible in scene view 3 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