Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Workshop Unity3D - Unesp Rio Claro

Workshop Unity3D - Unesp Rio Claro

Andre Luis Anastacio

October 23, 2014
Tweet

More Decks by Andre Luis Anastacio

Other Decks in Programming

Transcript

  1. Building Scene

    View full-size slide

  2. Prefabs
    Camera
    Light
    Animation
    GameObject
    Component
    Tag
    Input
    Collision
    Rigidbody
    Audio

    View full-size slide

  3. Most used methods

    View full-size slide

  4. Time.deltaTime
    The time in seconds it took to complete the last frame
    using UnityEngine;
    using System.Collections;
    public class ExampleClass : MonoBehaviour {
    void Update(){
    float translation = Time.deltaTime * 10;
    transform.Translate(0, 0, translation);
    }
    }

    View full-size slide

  5. GameObject.Find
    Finds a game object by name and returns it.
    using UnityEngine;
    using System.Collections;
    public GameObject player;
    public class ExampleClass : MonoBehaviour {
    void Example(){
    player = GameObject.Find(‘Player’);
    }
    }

    View full-size slide

  6. More Info
    Google Groups / Github - OpenGameDev
    Podcasts - Scicast #13/14 / Nerdcast #238
    Grokpodcast next week(?)
    Google Plus - GameDev on The Rocks

    View full-size slide

  7. docs.unity3d.com

    View full-size slide

  8. Github: andreanastacio
    Twitter: @ndrluis
    www.andreanastacio.com.br

    View full-size slide