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”);
}
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.
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.
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
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.