How to Instantiate Object in a different Pattern ?

Hi all , I want to Instantiate a cubes(Prefab) in a Diamond Shape ?
Can any one tell me how can i do this? in Unity c#.

Create a diamond prefab.

…or rotate the cube

Actually i want do within the C# Code,
For Example

**




**
*
Stars are indicate like a cube.thanks

Can any one know this??

I’d suggest taking some programming tutorials! What you are describing is extremely simple. You want to instantiate a bunch of cubes in a series of pre defined positions.

Coming to the forums for help is great, but our input will be a lot more useful to you if you have a good grasp of the fundamentals.

Learn about the Indtantiate method, learn about the Vector3 struct and then learn about prefabs. Your very simple problem will solve itself!

Actually i know ,how to Instantiate objects in 5x5 grid, but here what i want is ,object should instantiate in a different Patterns .thx

Then you already have all the information you need! Create a series of coordinates that describe the shape you desire. End of problem!

Thanks