programmazione

Unity – Scripts – Assets

Unity – Scripts – Assets

1. MAIN TOP MENU> Assets> Import Package> Scripts

2. Projects> Standard Assets> Scripts

– Camera Scripts
Mouse Orbit
Smoot Follow
SmootlookAt

– General Scripts
Activate Trigger
Drag RigidBody

By |Unity3D, Video Games Development|Commenti disabilitati su Unity – Scripts – Assets

Unity 3D – Physic – Physics Materials – Standard Assets

Unity 3D – Physic – Physics Materials – Standard Assets

1. MAIN TOP MENU> Assets> Import Package> Physic Materials

2. Project> Assets> Standard Assets> Physic Materials>

– Bouncy
– Ice
– Metal
– Rubber
– Wood

By |Unity3D, Video Games Development|Commenti disabilitati su Unity 3D – Physic – Physics Materials – Standard Assets

Unity3D – Terrain Editor

Unity3D – Terrain Editor

1. MAIN TOP MENU> GameObject> Create Other> Terrain

2. Hierarchy> Terrain> Inspector> Terrain (Script)

You can:

– Push Pull terrain mesh

– Paint terrain texture

– Paint Trees

– Paint Grass

– Terrain Settings (Billboards – Detail – Resolution – Animation)

By |Unity3D, Video Games Development|Commenti disabilitati su Unity3D – Terrain Editor

Unity 3D – Nature – Skyboxes

Unity 3D – Nature – Skyboxes

1. MAIN TOP MENU> Assets> Import Package> SkyBoxes

2. Hierarchy> select Main Camera> Inspector> ‘Add Component’> Rendering> Skybox

3. Project> Standard Assets> Skyboxes> Sunny1 Skybox (material)> DRAG AND DROP over Hierarchy> Main Camera> Inspector> Skybox> Custom Skybox> Material slot

By |Unity3D, Video Games Development|Commenti disabilitati su Unity 3D – Nature – Skyboxes

Unity 3D – Camera – Third Person Control

Unity 3D – Camera – Third Person Control

1. Create a ball that rolls over a plane

2. Creare a Camera with:
– CameraController.js

#pragma strict

public var player : GameObject;
private var offset :  Vector3;

function Start () {
offset = transform.position;
}

function LateUpdate () {
//LateUpdate is called after all Update functions have been called. 
// This is useful to order script execution. For example a follow camera should always be implemented in LateUpdate because it tracks objects that might have moved inside Update.
transform.position = player.transform.position + offset;
}

2. Hierarchy DRAG AND DROP ‘ball’ GameObject over Inspector> CameraController.js ‘player’ variable slot.

By |Unity3D, Video Games Development|Commenti disabilitati su Unity 3D – Camera – Third Person Control