Minecraft build

How to create a cube that can be minecraft stack one above the other and to choose the form in a Gui
I already try a code for the generation of a cube I tried it but without success:
var prefab: gameobject;
OnMouseUp function () {
Instantiate (prefab, prefab.transform.position, prefab.transform.rotation);
print (“Models Create”);
}

The French THX Overedge

Implementing a Minecraft-like game by placing cubes individually isn’t likely to work very well because it will get inefficient very quickly. There is a great thread here discussing the implementation of different Minecraft concepts.

I just want the system of cube and creations I saw a project that I draw is that it: http://www.dailymotion.com/video/xgdied_realmsofcreation-multiplayer-casual-games-development_videogames
and I’d do the same thing

up

If the scope is fairly limited (as seems to be the case in the video), you can probably get away with instantiating individual objects from prefabs. As the scope increases, you eventually have to start worrying about batching, memory, game object count, and so forth, but on a desktop platform at least you should be able to create quite a few objects before having to worry about any of that.

As for the behavior shown in the video, there are several different elements to it, such as object placement, UI interaction, etc. As such, I’ll suggest what I always suggest, which is: If you’re not sure where to begin with it, choose one aspect of it (preferably something fairly simple and/or narrow in scope), start with that, and then post back if you run into problems.

Jesse Andrers Merci
I have tested deleted of objet and over is colored en green :slight_smile:
UP

Plz help me for a fix Scoop

You’re welcome :slight_smile:

Not sure if I understand the question. Can you rephrase?

I’ve tested the script and delete functions on a model in place of the player and it turns green when the viewfinder and on the models I am now looking again … How to generate blocks already cubes and blocks to understand more complex since the viewfinder of the range. Since such a right click by the player or it may generate block is texture if possible

I want to know how to display the grid on unity please. And how to remove the mouse and replace it with a viewfinder like Counter strike or other

Thank you very much

Well, your question is kind of hard to understand. If you need further help, I’d recommend focusing on a single question, and providing an example in your post (visual if possible, like in your earlier post) to help clarify what you mean.