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 /
  • Help Room /
avatar image
0
Question by iRuDz · Feb 24, 2016 at 09:35 AM · unity 5terrain

Placing textures

I want to duplicate this texture all over the terrain like how it's done in Minecraft. Thanks in advance.alt text

scr.png (223.0 kB)
Comment
Add comment · Show 1
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 Statement · Feb 24, 2016 at 10:17 AM 0
Share

http://docs.unity3d.com/$$anonymous$$anual/terrain-Textures.html

https://unity3d.com/learn/tutorials/modules/intermediate/live-training-archive/introduction-to-heightmaps

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Jason2014 · Feb 24, 2016 at 06:07 PM

In case when you have terrain you have to select option in the middle (brush icon) and set specified texture.

But if you want to make Minecraft clone, terrain is useless. Minecraft world is made from separate cubes and most efficient way to do this is from for loop.

Take a look:

 using UnityEngine;
 using System.Collections;
 
 public class BasicWorldGeneration : MonoBehaviour
 {
     public GameObject Block;
     public int AmountX;
     public int AmountY;
     public int AmountZ;
 
     void Awake ()
     {
         for (int x = 0; x < AmountX; x++)
         {
             for (int y = 0; y < AmountY; y++)
             {
                 for (int z = 0; z < AmountZ; z++)
                 {
                     Instantiate (Block, new Vector3 (x + 0.5f, y, z + 0.5f), Quaternion.identity);
                 }
             }
         }
     }
 }

This is a very basic world generation with configuration. You can select a block and adjust rows in all axes.

Browse series in Youtube. There are many tutorials how to make Minecraft in Unity.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Things Placed With Pin Detail Not Showing Up? 0 Answers

How to handle multiple terrains? 0 Answers

How can i make a planet in unity 5? 2 Answers

TreeInstance is not working properly 1 Answer

Border around procedural height map 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