Awake y Start

Tutorial

·

Beginner

·

+0XP

·

5 mins

·

(271)

Unity Technologies

Awake y Start

Cómo usar las funciones de inicialización de Unity Awake y Start.

Este tutorial está incluido en el proyecto Scripting para principiantes.

Previo: Modificadores de ámbito y de acceso

Siguiente: Update y FixedUpdate

Languages available:

1. Awake y Start

using UnityEngine;
using System.Collections;

public class AwakeAndStart : MonoBehaviour
{
    void Awake ()
    {
        Debug.Log("Awake called.");
    }
    
    
    void Start ()
    {
        Debug.Log("Start called.");
    }
}

Complete this tutorial