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
1
Question by CubePhysics · Jan 17, 2013 at 02:48 PM · meshbuildings

How do I make accessible buildings in Unity 4

Im making a short experimental horror game and I understand allot of things about modelling and stuff but how do I make a good building that you can enter and exit?

using blender and unity cube meshes dosent seem right or if it is right can someone tell me how to do it?

Comment
Add comment · Show 5
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 CubePhysics · Jan 17, 2013 at 03:22 PM 0
Share

BU$$anonymous$$P BU$$anonymous$$P!

avatar image $$anonymous$$ · Jan 17, 2013 at 03:27 PM 0
Share

If you understand a lot about modeling, you can model any building in blender, then import the mesh(es) and you have it.. this question is not specific.

avatar image ryba · Jan 17, 2013 at 04:24 PM 0
Share

If player step into entrance, should be new scene loaded, presenting buildings inside ? For example like in Baldurs Gate ? Or should be inside of building just part of one scene ?

avatar image dorpeleg · Jan 17, 2013 at 05:03 PM 0
Share

$$anonymous$$odel the inside seperetly and then you can script it so that when player enters it will show the inside.

avatar image doublethink · Jan 17, 2013 at 10:13 PM 0
Share

Check out the Bootcamp Demo. It has some interiors with advanced lighting and details. They use layers very effectively to seperate the different parts of buildings.

http://u3d.as/content/unity-technologies/bootcamp/28W

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Mrmudweasel · Jan 17, 2013 at 10:55 PM

I found the same problem while creating my games, i created this script, apply it to a invisible object and set the box collider to trigger, also when you walk out of the box the GUI disappears here is my code:

 var showMessage : boolean;
 
 
 function OnGUI(){
    if(showMessage){
        // Make a background box
     GUI.Box (Rect (158,10,100,90), "Enter house");
 
     // Make the first button. If it is pressed, Application.Loadlevel (1) will be executed
     if (GUI.Button (Rect (168,40,80,20), "enter")) {
         Application.LoadLevel (1);
     }
 
     // Make the second button.
     GUI.Label (Rect (168,70,80,20), "   my house"); 
         
     
    }
 }
 
 
 //makes it so when you walk in it shows the GUI
 function OnTriggerEnter(){
    showMessage = true;
 }
 //makes it so when you walk out of the object the GUI disapears 
 function OnTriggerExit(){
    showMessage = false;
    }
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 thekingofdallas · Feb 04, 2014 at 12:10 AM 0
Share

$$anonymous$$rmud! Thanks, this is the only good answer I have seen. Unfortunately I put my game on hiatus because I couldn't figure it out! So ideally I should place an unoccupied object on the door so you can enter there and exit there?

avatar image Mrmudweasel · Feb 04, 2014 at 07:34 AM 0
Share

Well, is what you would do is take a unity cube and place it on the ground and space it out in front of the door so that when the player gets near the door the player touches it. Add the script provided, there should be a little checkbox somewhere on the object towards the top that says "is trigger" check that and you should be good to go.

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

14 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

Related Questions

Standard shader not working on procedural mesh 0 Answers

Drawing new mesh not working 1 Answer

Weird Line Between Meshes 1 Answer

How to take a chunk out of a mesh at runtime 1 Answer

One mesh but few materials 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