![]() ![]() In the Player script, add two public properties for the movement and turning speed. Drag the Player script from the Project panel onto the Player in the Hierarchy panel.In the inspector, make sure its X, Y, and Z coordinates are all set to zero so we're sure the player is at the center of the 3D world.WebGL GLSL ES 3.00 (OpenGL ES GLSL ES 3.0 Chromium). So, let's create a basic player we can move around with the arrow keys. The Unity WebGL build option allows Unity to publish content as JavaScript programs which use HTML5 technologies and the WebGL rendering API to run Unity content in a web browser. Save your Scene (File > Save Scene) and name it MainĪll of the cameras we're going to create will need a target: something to look at or follow.Select the Main Camera and move and rotate it into a position above and behind the cube.Drag the grid texture from the project panel onto the Plane in the Hierarchy panel.In the Inspector, find the Transform component and change the position X to 0, Y to -0.5 and Z to 0 so it will sit below the cube. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |