Unity3d Cube Add material

Source: Internet
Author: User

To add a picture to the cube as a material, simple AH.

1. Create a cube

Gameobject-->3d Object-->cube

However, it is found that the cube is black in the scene.

You can add a point light. Gameobject-->light-->point Light

Adjust the light source position between the main camera and the cube. In this scenario, you see a cube.

2. Create Meterial

Put the prepared picture in the project directory, and create a new texture directory to put the picture, create a new Meterail directory to put the material.

Then right-click on the Meterail directory-->create-->meterail

Select New Material and choose the prepared picture in the Inspector

3. Attach the material to the cube

The surface of the cube in this scene is covered with the selected picture.

Unity3d Cube Add material

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.