{"id":67379,"date":"2025-05-24T03:50:04","date_gmt":"2025-05-24T08:50:04","guid":{"rendered":"https:\/\/niixer.com\/?p=67379"},"modified":"2025-05-28T15:10:50","modified_gmt":"2025-05-28T20:10:50","slug":"unity","status":"publish","type":"post","link":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/","title":{"rendered":"Paso a paso videojuego en Unity Nexus Fear"},"content":{"rendered":"\n<p><strong>Creaci\u00f3n personajes<\/strong><\/p>\n\n\n\n<p>Para la creaci\u00f3n de nuestro personaje en Unity con nuestro propio rostro, ingresamos a:<\/p>\n\n\n\n<p><a href=\"https:\/\/metaperson.avatarsdk.com\">https:\/\/metaperson.avatarsdk.com<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcS_Qh5a4-NhIgtrYPJI55FKg-peog-csbxLdsNpFUIluyrKRLUU3mvDlgEJt_iB-sA-PmZArHLiaetEquJIY5d9hBCNvUgndNt0vA7KvgRhLCI75F6tl4ASdkKeQQLlQcGOEs2bQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 1: Selecci\u00f3n de Personajes<\/figcaption><\/figure>\n\n\n\n<p>Seleccionamos la opci\u00f3n take a selfie donde se abrir\u00e1 un c\u00f3digo qr&nbsp; que deber\u00e1 ser escaneado en nuestro celular, una vez tomada la foto<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf7ZMT8ytUXXQTJMhsqlsum7JNK2RNXcVYJ79jiJc2nLYfFCwZT4608bSroEYAZGTamTdl2XuGIIsVTq-dQ2VxXGtvGwHQql063ETN9NTcPKuXms6Su26Fl9tiOVM39fvY6UO18?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 2: Codigo QR<\/figcaption><\/figure>\n\n\n\n<p>Una vez tomada la foto en la p\u00e1gina se nos dar\u00e1 la opci\u00f3n de generar&nbsp; el avatar<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeWtAwEXI28nlMhzdHEWpepJ4iGeta6WvYem08PTkZepJqObSfQHoiHuSxFXbKvRFVQSeYhYpwU8boxs5h4T8qIzJTqKLd4LOLQJvqi_Oyx-zyJmnjCHGWgJl7-dkkgHJNcvGFp5w?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 3: Descarga del Avatar<\/figcaption><\/figure>\n\n\n\n<p>Personaje 1:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcO54i2nuDkD4-64A34Rhin6dVmREX1wmVn3K8E1r7SGVb9mrh50ASokBHofKt8Efy7ibw5GH2HKke-p6EgN7N-Byl_A0kWb4Cg9dM4VJYnxwVBBgkDYDDnHgivu2ADD_b6bdZq?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 4: Avatar Personaje 1<\/figcaption><\/figure>\n\n\n\n<p>Personaje 2:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXc9AddiMiE7BVLNG21vM3ND4MJv6TXL82gpM45RCzfRbKTD0HSpWBsjsLcVLqgefbfo6cIoUsKayfUEjbVlElahDsKqknp-I8yOavn6G_AoWfzvKIljd-Y9PRwZnqWo7pr5p0s7?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 5: Avatar Personaje 2<\/figcaption><\/figure>\n\n\n\n<p>Personaje 3:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXePiszm4v7ymGIbnGZxkaN0lMahDjwrvTM329maHmUqFAv44w4c_23BcmmjBrxjfkj1CrDxjQUHmacY-t0UdxrmJgnLOR2Z2UdhuI3W0pJvvvDZNUkFOFaAdCsfZ_uEgQLduve3gg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 6: Avatar Personaje 3<\/figcaption><\/figure>\n\n\n\n<p>Una vez generados se pueden descargar en formato FBX<\/p>\n\n\n\n<p>Posteriormente ser\u00e1 importante generar una carpeta para poder aplicar las texturas cuando se importe el personaje en unity<\/p>\n\n\n\n<p>Para realizar esto se importa el modelo en Blender<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf6gp5Fh_vTmwKKeMSG6_fU3KK-WaKlnQYBokOZSL_gr7OVhTJud1YpUXsfsLVKCUfs-Gnck1rxCpbR3hHT6z59-jRZVXfZt4Y05Ow0WkxfrdVmBrXiXyJqO6-H1wRnwGWZayfxzg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 7: Texturizaci\u00f3n de personaje<\/figcaption><\/figure>\n\n\n\n<p>Y en la parte superior nos vamos a la parte Editar UV<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdSU3O_UPQJIgchVgxs1vLUFTRutLeOWeEQIDTlPhwB5IyuA7dvyyBDqIKbVjUjfgqOdhcFDEcZ76RLwWE1Glu-YyrOBCpuuiZWjgJZH0UZ-h0c0jepla32SGo7JUvNgK2fK7X-bg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 7: Editar UV<\/figcaption><\/figure>\n\n\n\n<p>Ahora en el modelo seleccionamos por aparte todo lo que se va realizar la textura en este caso es la cabeza, el cuerpo y las manos<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cabeza:<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXccWGQ4y7v2rk59jdQmU7PpE7_DjX9ynapMEw_V026TZWP5vYXRTIdNyMkv1sfUsRafImLai3vvoLpbXeCJimOJYuRQcrbfO21V5QoRrjnWuo7z-UIKOkOFjwlFSvuzVqSI41CV?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 8: Texturizaci\u00f3n Cabeza<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcySx5UZfANQeDzbkQFg-UZ4k9gNcqwUhLsrNaogb6IK9GvZpFda6z4AZ1dI9wb-tiwcxxvMMja8I3rhDf0u3DdgUJpBCzFty2rRABW4d0vMcffzxZnsxDW7qqrS_IPlV3XeIpA8g?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 9: Texturizaci\u00f3n piel<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Cuerpo:<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXegANMNhXKAQQsK6LK6NOhMBufgsJ_956q2GNFEiQp8RJqIIVLF2-9KhOADvu-sabVIPseBF_Y4Gk4qxguMR03-It7wg3J4k4IeDrY0c4lc23tVpDc4nJFsKFZSIccY_U-CcfXK?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 10: Texturizaci\u00f3n Cuerpo<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf0bkFHyRu73_bp-ZW2dKgyND53mIKbRZteb0TK89YMKzEyFErNLl3V5slRVDrKI6U8XHNus5XEgh3hyL_7EV0ppbKChYykmSeJ6Snn2p5tgaHwoGXQ0fJLQ9X1eqz-lBe2euo0?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 11: Texturizaci\u00f3n Ojos<\/figcaption><\/figure>\n\n\n\n<p>Para exportar cada textura nos dirigimos a donde dice imagen<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdl4wN9dHEB7ANOIJ79uPq9u661iY_fg4TYFcVjSXxZGuoT_HkQSFePK0h7jull1LtxYt5OVtMDS80MZqozHNte1Imckfuz-VBuHPAauMCHMMoAk70tf_TTZ2z34tufwfaJTv6ZRg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:628px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 12: Exportaci\u00f3n Textura<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXc8IbU_RmBRDLMW6kMUntDMD3ramJPVLSPsZCX_eAuXtqAFKqyhoQGpsFv59z_rwANimnpNTJs8K9Bo4mdEBXxYKlSADD8ZC2-7g-zPq7mUyoqAdsBEWCGlAtmR8XWjMtfE8KzQgQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 13: Guardar Texturas<\/figcaption><\/figure>\n\n\n\n<p>Para llevar un orden se crea una carpeta con todas las texturas generadas<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdERB0YgjPuTa-qCXfPe6K2th8Px696YBlRunfWutuEzjtFvFjqmDqPy6o2PIiD373FiGd37HNIz8QEa26cJecXwUhl8wvvuaFKv2ArWZQJA1pK9Inp4AOyIqBaU6VojSSYi6aqBQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 14: Carpeta de Texturas<\/figcaption><\/figure>\n\n\n\n<p>Se repite el mismo proceso con los 3 personajes que se van a utilizar<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><br><strong>Importaci\u00f3n y texturizado de los niveles en Unity<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Nivel 1<\/strong><\/h3>\n\n\n\n<p>La tem\u00e1tica principal van a ser los backrooms, por lo tanto en sketchfab se buscan escenarios relacionados<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdFuW_rfA8yEwb1vZaF9EpSxUl86TuO6HtiDdggQlI4W34WYZGVF38o9dxEysMqhZWJ0MtBybChAndj-HgX3nZni_qanJOnmdwUSwzs7MQYl9cFtSjFRYeS4I1fVXg_VPjCBYmLQw?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 15: Elecci\u00f3n de Escenarios<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcdZi9NGyBJdaSg6wg4MAPcG6CZsnjQtx9c_3YO09K_i_9s2SVtNKdwXrFbJ3fK0c84s-XZhOFSvITnF_TOCeQtd4bXVwYwPfkPag3c6e52iHS9u4IH5P73OG0pXnBx6iixxi_P?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 16: Descarga de Escenario<\/figcaption><\/figure>\n\n\n\n<p>Para abrirlo en Unity se arrastra la carpeta descargada y se ubica donde sea necesario, en este caso se guard\u00f3 en la siguiente carpeta<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeyABq6cNDxbMacnTRRO5WR06CL_m1KJzhEaqgxbG-Exr6l44WtfpOLcJzQ64MJC3_okJDi8Xa_vQaFgzl391VgHB5y-yX02q6Bx6B7ktFbs_pN0aHm1L8JrxtEbIJ3RvkK1fHAEA?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:194px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 17: Carpeta de Escenario<\/figcaption><\/figure>\n\n\n\n<p>Posteriormente se arrastra a la jerarqu\u00eda de la parte izquierda del editor<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXctLuKwjGdlbqkFaVoPmqfiO1UYBvemkU_bcRGGqtMRDxY-WRo9KuUae32k0z4kdHoMUsjpYbmPKF_tEyzAEIhL-wWZPvFqqkRmNx1QyRjnqb56_-SWbSUb7bPkSCWEaomkcjxTiQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 18: Jerarqu\u00eda en Unity<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Nivel 2<\/strong><\/h2>\n\n\n\n<p>Para esto se hace una nueva escena y se abre en unity el nuevo modelo, en este caso se va a realizar un laberinto<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"516\" src=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-604-1024x516.png\" alt=\"\" class=\"wp-image-67838\" style=\"width:440px;height:auto\" srcset=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-604-1024x516.png 1024w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-604-300x151.png 300w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-604-768x387.png 768w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-604.png 1114w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Hay partes del modelo que se importan sin su textura, para ponerlas buscamos la carpeta con las texturas del modelo<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeSjzhmmdIkVhCcLui3y707orXe30PRFOSUlqsxU3Uit794WjNwnawdTzrLDK5eMO6SEeCikRooHUFS6I_wc8CFbkeP1S-gVbsGjkFIEddmtaktjpxd8LFk6LbcK-0JryuQkN9bog?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 20: Carpeta de texturas<\/figcaption><\/figure>\n\n\n\n<p>Al abrirla aparecen todos los materiales existentes, para aplicarlos se arrastran seg\u00fan corresponda<\/p>\n\n\n\n<p>Paredes y suelo texturizado<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"763\" src=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-605-1024x763.png\" alt=\"\" class=\"wp-image-67839\" style=\"width:363px;height:auto\" srcset=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-605-1024x763.png 1024w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-605-300x223.png 300w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-605-768x572.png 768w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-605.png 1031w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Nivel 3<\/strong>.<\/h3>\n\n\n\n<p>Para el nivel 3 vamos a tener un parkour, para esto seguimos el paso de los niveles anteriores de buscar un modelo y descargarlo de sketchfab<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-606-1024x477.png\" alt=\"\" class=\"wp-image-67840\" style=\"width:424px;height:auto\" srcset=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-606-1024x477.png 1024w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-606-300x140.png 300w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-606-768x357.png 768w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-606-1536x715.png 1536w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-606.png 1717w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Al abrirlo en unity tambi\u00e9n aparecer\u00e1 sin texturas por lo que volvemos a la carpera de texturas del modelo, por lo que seleccionamos los objetos uno por uno y arrastramos su textura correspondiente.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"507\" src=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-607.png\" alt=\"\" class=\"wp-image-67841\" style=\"width:313px;height:auto\" srcset=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-607.png 617w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-607-300x247.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Escena para selecci\u00f3n de personajes en Unity<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcC6WNQEcIMiDTDqsYmEOV6eGBM5_PAgiMgtQBbvoet1-jSJJm27Uj77qBt69FqiREz1PKq8FmYwVMrSXBschdibLZK3f3dveSW3PRlnjrVQOiICNtkJCrk4vmUKuPzdolwwxHM?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:208px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 24: Escena de Selecci\u00f3n<\/figcaption><\/figure>\n\n\n\n<p>Se crea un plano<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfLkSTCqpaS64a3jgfUVyq9FsGg3xjKB40UYE1fPeWFI7rkLoYAPCnhNXgj1G5viwc7PuPhLJW1EVPPLX9bNavV0jAHoDo7dL8X2-a8FWdYNjls_4tV2b7bTgdZSn8tnrAHfsEQKA?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:792px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 25: Creaci\u00f3n del Plano<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Se crea una nueva escena<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcVjNYT1kjpmbAS6h_Htx5moxCI0oxcDIciIVJUECm0AE5UXoNbFai4OIv1_l7-zK3aoNpv8_g8cP_mLwT112YnZNpz_AWtlv9nXPQWp6RvAL05FkjOslQ6aS-_hp9Nxelz7l1few?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:145px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 26: Escena Men\u00fa<\/figcaption><\/figure>\n\n\n\n<p>Se crean los botones<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfPmphF_rLd_xJ5yN6kvVlzgcO6zpHNFVwH_O9HFoQwjR4PyNNzVPfKXNluZAzsImX6-f1u-bqvXQr9MUaD1cd_Fdvgyui7EnQslJZs_f_5TfHdGuc4Tvv6tfsmpc4cw1etIr5X5Q?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 27: Creaci\u00f3n de Botones<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeaSvmRsp0TJ7SMxQF61r8XkdUXPQdGDu-QRcMYt1cA0Im1SiqkmyqDAHyeufgIzAC-sNvFTTSfIz-Dufe70ARlIqttr7ltLjlhC5UyUgJwmGkR9JPZOUOzmohLEhh6drgbgV68Ng?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 28: Bot\u00f3n Comenzar<\/figcaption><\/figure>\n\n\n\n<p>Para los otros botones se copia el primero y se le cambia el texto<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXei9vNzpL7Zc1hpIcCvL8E2A95NVTKb80jKEtMXvv_Oy2E4oS_3fGDR0TOcQ7Csc1yhXGpgfZS-sCplmVJB4p-i-LVAozIDg2FLBFaUSQOU33VBf5OPOTIcKd-0ujZDL4lxsh0obg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 29: Botones Integrados<\/figcaption><\/figure>\n\n\n\n<p>Posteriormente se cambian los colores y se ajustan seg\u00fan la necesidad del juego en Unity<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeVZfFssdCOYfnRj977JZc8GBTz5f72nnMb9GHTHLUjiezIWUTYWUN-szNvRArDxCtI15t76vcf_Wa6sGhh9Rc1Iu_qcWgVPa5Rreo-rTGh9PVMB9Rkl261REHgTTlgprEpbUxFLA?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 30: Cambio Color Botones<\/figcaption><\/figure>\n\n\n\n<p>Ahora se le tendr\u00e1 que dar la funcionalidad a los botones, para esto se crea un nuevo script, para llevar el orden creamos una carpeta de script para ir guardando lo que se vaya generando.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfM4LaYqE2lVnk1TuOpnuTZ1H1CrvVq-HZKDFx08Ru9Y5hbu2J_YSbJgL-5qrgLZWHbdH53F-YysJGz0i_ixQoQYUFTa-D1AYLoJVMkeqAhyUSQm540a8r8lESYftI8ZRny2kFbgw?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 31: Funcionalidad Botones<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeiZnDtrZ8flKD91uuxWvh5GipkVYARDHmWqka1oq1MpXQmsUETzwoQsVBh6jk0ztL_hYf4VGHvSiju4frSjbT_aneOVzumYVBsoCj62JUmCTOj33oOS-iAmJRkTE8MqlgCW7qDkA?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:145px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 32: Script Men\u00fa<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Explicaci\u00f3n del Script MenuInicial<\/strong><\/h2>\n\n\n\n<p>Este script, llamado MenuInicial, est\u00e1 dise\u00f1ado para manejar los botones del men\u00fa principal de nuestro videojuego en Unity. En particular, permite iniciar el juego cargando una escena espec\u00edfica y salir de la aplicaci\u00f3n. Veamos qu\u00e9 hace cada parte:<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Importaci\u00f3n de espacios de nombres<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXco9yMmugAexbBRiI9ZuY3Z2bMDa0wBuOAm017kHyN0qOfojStCOUTIBZsaxUYZx-vXJukZEJ_ymsTwx-edKUeC3V-sALVhKvXzpx2n8tm7AEEKvvk_l0bsk1AA9JSWwknAIuNPRQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 34: Funcionalidades Men\u00fa<\/figcaption><\/figure>\n\n\n\n<p>Estas l\u00edneas nos permiten acceder a las funcionalidades de Unity:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>UnityEngine:<\/strong> nos da acceso a todas las funciones b\u00e1sicas del motor.<\/li>\n\n\n\n<li><strong>UnityEngine.SceneManagement:<\/strong> necesario para poder cambiar de escenas dentro del juego.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Definici\u00f3n de la clase MenuInicial<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXco9yMmugAexbBRiI9ZuY3Z2bMDa0wBuOAm017kHyN0qOfojStCOUTIBZsaxUYZx-vXJukZEJ_ymsTwx-edKUeC3V-sALVhKvXzpx2n8tm7AEEKvvk_l0bsk1AA9JSWwknAIuNPRQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:738px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 35: Clase MenuInicial<\/figcaption><\/figure>\n\n\n\n<p>Aqu\u00ed definimos una clase p\u00fablica llamada MenuInicial, que hereda de MonoBehaviour, lo cual le permite ser agregada como componente en un objeto de la escena (por ejemplo, el Canvas del men\u00fa).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>M\u00e9todo Jugar (string Nivel1)<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXco9yMmugAexbBRiI9ZuY3Z2bMDa0wBuOAm017kHyN0qOfojStCOUTIBZsaxUYZx-vXJukZEJ_ymsTwx-edKUeC3V-sALVhKvXzpx2n8tm7AEEKvvk_l0bsk1AA9JSWwknAIuNPRQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 36: M\u00e9todo Jugar<\/figcaption><\/figure>\n\n\n\n<p>Este m\u00e9todo se activa cuando el jugador presiona el bot\u00f3n Jugar. A diferencia de la versi\u00f3n anterior del script, ahora se le pasa como par\u00e1metro el nombre de la escena que se quiere cargar.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>string Nivel1:<\/strong> es el nombre de la escena que deseamos cargar. Este nombre debe coincidir exactamente con el que est\u00e1 registrado en el Build Settings de Unity.<\/li>\n\n\n\n<li><strong>SceneManager.LoadScene(Nivel1):<\/strong> se encarga de cargar la escena correspondiente.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>M\u00e9todo salir()<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"215\" src=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-511.png\" alt=\"\" class=\"wp-image-67398\" srcset=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-511.png 445w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-511-300x145.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><figcaption class=\"wp-element-caption\">Figura 37: M\u00e9todo Salir<\/figcaption><\/figure>\n\n\n\n<p>Este m\u00e9todo se ejecuta al presionar el bot\u00f3n Salir. Hace lo siguiente:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Application.Quit():<\/strong> cierra la aplicaci\u00f3n si est\u00e1 compilada (por ejemplo, en PC, Android, etc.).<\/li>\n<\/ul>\n\n\n\n<p><strong>Debug.Log(&#8220;Salir&#8230;&#8221;):<\/strong> imprime un mensaje en la consola. Es \u00fatil durante el desarrollo, ya que Application.Quit() no tiene efecto en el editor de Unity.<\/p>\n\n\n\n<p>Ahora se arrastra el script al canvas en la jerarqu\u00eda para que este se tenga como un nuevo componente<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf_vrtmYi8FTUbGwIbeqmNSGCeoZtgjGr9OHmoLeARS1pZDmk0wB_CEXAiHnVekjZX0aE30Cml6IvSTEavUKsCvWBPlpaAcaQy1btNmxg3g4cPx6t_0Ln2Sko3oKEd1_UtpK9AK?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 38: Script a Canvas<\/figcaption><\/figure>\n\n\n\n<p>Ahora para asignar las funciones creadas nos vamos al inspector de los botones y en donde dice On Click a\u00f1adimos uno nuevo<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXe9VQDjEZFUEPSZ955aUWy43UfWJCzqOsa4KBvuRxoJkWIjYkYRTsuMIUc0OExg9I1NSJ1_rCMHsJEwplXuWUYEhpcLDSX44roPn8oFsklLUsvQKiHUWVm-46b4LpQpGkbDtqAbPw?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 39: A\u00f1adir Funciones<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcQMU1-CBOoG9uQH3paPcGAXv-KkHnSAD_TeXONYj3S7PIsp8exoCm25xTpAUZvVEe6aCseimVOTbxioXneZHKSUG7yGPzKuHMqhMeZW_A482vAy83M3HGu3gCxMLc7XZDKnAavow?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 40: Funci\u00f3n Runtime<\/figcaption><\/figure>\n\n\n\n<p>Se arrastra el canvas en donde dice None (Object) y en function se busca el script creado anteriormente<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeP3ojdv9bslQJ4hWiR7k0JrCwSUfIYL9sZfMF7bHCSsl3GxVwUwhQBRe8V2o2fPnRnv_nN65ZRxGAR-6J92tw4hkrGIP5A-2qWzc7vTMkaxis5WdoAhNzYwzomAum7bhselnDS?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 41: B\u00fasqueda Script<\/figcaption><\/figure>\n\n\n\n<p>Se repite el mismo proceso para el bot\u00f3n de salir<br><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXe61QAK1XpTzTNSQHXIxKBHXeOy57Ew-isMBPaZopE-06FleBnzHYYMMNeEE5PoTYguF8ExzFfaKOwEyLCrQ9XxT91Kr-MmIUwgbm6d75p6dGavExA43GnWf-xbNxsZlHXoiDQUHw?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 42: B\u00fasqueda Bot\u00f3n Salir<\/figcaption><\/figure>\n\n\n\n<p>De igual manera se crea un men\u00fa de opciones<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfhbvn_NCYA67SwqVnuPdQjwyyKHThuV5cffHwKjzLNgeyOozXT5XyOKQnBieCPypG1V4CPdYC6tkCvZ2zeuvCJpNkbozhAx0MjmdW62Iz1fC2kfrzbqidgj4XQQisav1AKLZpwSA?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 43: Men\u00fa de Opciones<\/figcaption><\/figure>\n\n\n\n<p>Luego se le a\u00f1ade una imagen para el fondo<br><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfgKZP7jrVHSarM0JbDHz2vjswf6KWHl8LnpGmrtvsK2loIQE_88TkH6Fiv0Ol9Un_xsRysX6ehL_pTklNBTwfXDaR1Vh8vCSZS5p3zH07J8MzA65WnRKIzzJBeyd_kFP6X561Z?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 44: Fondo A\u00f1adido<\/figcaption><\/figure>\n\n\n\n<p>Para que los controles aparezcan cuando se presiona el bot\u00f3n y se quiten al dar regresar de deben configurar los eventos de los clics en el bot\u00f3n opciones<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfaf45zjvp29mINxDrIhlUEQcv0RDy8YoIpT8gq_fivAm8W66ZK-BXFWrXJhH9WHmKFXzYmGp9cBRcXQkEvH7FFEGzehaulMIgYn5sNuJCkhgsu7mdOUb3MHMj97vhOgPzv0scw8A?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 45: Configuraci\u00f3n de Eventos<\/figcaption><\/figure>\n\n\n\n<p>De igual manera en el bot\u00f3n regresar<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdTOQO7hzVBMV-I3Et14Q4d1QlceafSaL00iB3Tj9uXC2Mzz4Kpo9vFJfH5tCCrxRrXYiJYQPygyJPqI1ilVd88IXOy5ygTkcyeWkpQ0uKM_mjfY9CgcvrS_UBpcx8NVpey44OVig?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 46: Configuraci\u00f3n Eventos Regresar<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Selector de personajes<\/strong> en Unity<\/h2>\n\n\n\n<p>Para tener organizados los modelos se crea una nueva carpeta llamada personajes donde se tienen los modelos y sus texturas.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcWQJuWMPUeBFgOK8sDce_sX98xxbT-_OaiKQPl80HG0fsmTTi1-AQVLq0MWoH7e2Hl2BH6loCS5SscMY__fS-jKA9P6QK71eXduqRHeGWDwrjCprqTeoXo2VDBAxr-tAV5Y7NMmg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 47: Carpeta Personajes<\/figcaption><\/figure>\n\n\n\n<p>Se crea un plano<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfGc5D01gUvaF9qllWd5mu0HOs5CfHMKtcGuhufJ2XQCge7MR_W3QC4UN_67DqjqXL7tqrYgta2wx07FCt5EwN2WjyKOf48PIhFED4Rn7G-17m2kWctTorbhHHPiiuUqlcjxbbPxg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 48: Plano en Unity<\/figcaption><\/figure>\n\n\n\n<p>Se ponen los personajes<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfW0YuOC-yMx0FqHbz-JQW40B2zR_SMIwRPlCz6axwmTRvUz_i_efFmTuZ0BkFGqvFZhDTrtFKYVJME3yHOu-Wv1dt-MuUz-IaO7YBLCjsxnzU3uKbdRoBbjIaOR5RuX2GL1ZjWKQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 49: Ubicaci\u00f3n de Personajes<\/figcaption><\/figure>\n\n\n\n<p>Se crea un nuevo script para el objeto selecci\u00f3n<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXekRKPVJoYseOnQlsLz85m4-_3cEb0_xrOIJ6ZaaD-yUAIPZHM7SqdlAGHhZS7Oda_o4TvOo-mP8O1TiFuc-mE7S3sWVG6dqzcaUrTKQPnjz6YwVdF1wAyCgGVC38HWJwOwMy9Lgg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 50: Creaci\u00f3n Script<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"680\" src=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-514.png\" alt=\"\" class=\"wp-image-67403\" style=\"width:450px;height:auto\" srcset=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-514.png 500w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-514-221x300.png 221w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption class=\"wp-element-caption\">Figura 51: Script Selecci\u00f3n<\/figcaption><\/figure>\n\n\n\n<p>Ahora se acomodan unos planos que servir\u00e1n como paredes para darle un fondo al juego<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdeChYp0FRano4_TChWExrXK4N4j6YCyfwfH7MeCi4S1ODAT-GuWu_pSIeIJsWtrgLk_aAUJ2mVWdsRByltmElSMqPrAxRbCesLENe1W6D7nuveet5HPgF4-wfSv5FOKv_AQnJriQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 52: Creaci\u00f3n Paredes<\/figcaption><\/figure>\n\n\n\n<p>Se crea un nuevo bot\u00f3n<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfWzLgM92rHKld8D06rNCyYZVco2IKLuZAWDwIE3XRdwtCryYnjeuCRxSiel2r1E_c0UETOmsDNbHrErQda_0tcq6cdtOuohDOEZXqtJxldGYkxVOB3n0kZ8_GvzvyDvVD_4Hc6?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 53: Creaci\u00f3n Bot\u00f3n<\/figcaption><\/figure>\n\n\n\n<p>Se crea un nuevo objeto llamado GameManager y se le asigna el script SpawnPersonaje<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"499\" height=\"729\" src=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-516.png\" alt=\"\" class=\"wp-image-67407\" srcset=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-516.png 499w, https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/image-516-205x300.png 205w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><figcaption class=\"wp-element-caption\">Figura 54: Script SpawnPersonaje<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeqXcUNi4bb8Wa3sLkGjsFn6p9LBYMOV9gSAF-U9b5qUTP1HWDK8-ZKGfOwagrQLH80l5EwzBoaJds7NHEHfiGrxJQqxk89qBMizcNXmFupvMALQ2T2Lb4mtX33xb2_woszYYNJSw?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 55: Ventana Script<\/figcaption><\/figure>\n\n\n\n<p>Y se crean los scripts de selecci\u00f3n del personaje<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdCciuzv1TY5KeK6_QGcvpa5yHY1a0Y_iYzimHNDbBgIsnuUIgwb1At0jmOGi0X2uAc3vo3gfOKnS3nBZ5FZpUQPJDGbzRAyxWqRfic7VR7CMGZuYlYhs4DJDxoRUxNPQvcK_kPBw?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 56: Creaci\u00f3n Script Selecci\u00f3n<\/figcaption><\/figure>\n\n\n\n<p>Para que el personaje seleccionado sea el que se tiene se crea un nuevo script llamado SpawnPersonaje<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Nivel 1<\/strong> en Unity<\/h2>\n\n\n\n<p>Se abre mixamo, se carga el personaje y se le da una animaci\u00f3n, posteriormente se descarga y se abre en Unity<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcyEwO_vy3THMKYQjU8dFQ3cU4dp9zIWoo7Ea4_YA5wmZrKJFv0zG2jGepxA3wrKIkjeYw6daYY7sibJ0a0ZZRZP-sYXVELGQk8wzM0R17nbWuD2WLglouNLQdWoU1QSwe2XFdh4g?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 57: Pagina Mixamo<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd50q6p0PCkT_16hyzUW_b4Nvac8gacQpKzjo9wgTkjuQFhXBT2b6DNH6mwLhiZaJrAMbVgf5v3lWpeqNK0B3dukJ6YZXuP0QWy-6Y1Fzd724wSP-awwqFjteDsZVBnuFJvm4ac5A?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:301px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 58: Animaci\u00f3n Caminando<\/figcaption><\/figure>\n\n\n\n<p>Se pone en la escena y se le aplican sus texturas<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd0ZVZVGLaOcpaPvyT3zxAPshPvoFrNbRxLyaY-9AuIoIlZruEkWvDXsEzurLCXMxc0RpXyqTJi7dUYNfm60Is4NOQ5glDu5TsyT-P7TNzhMW-hO_C1NntSGIdnVGL0dMKgHG59?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 59: Personaje en Escena<\/figcaption><\/figure>\n\n\n\n<p>Se crea el avatar a partir del modelo modificando los siguientes par\u00e1metros en el inspector<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd1wofQFXf1xZCBIx513urf6FdV1QYlxT6fgaSlhbBpGLKRwxkLqpmbIuXX_eey6j9Yvk9Cyr9IlMojGYkMSpIX9Ck7ksCTJWQ9Rp6wrfEsNhDb6ji8whK7PWlvSUBT8_Plp3hH3w?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 60: Modificaci\u00f3n Par\u00e1metros<\/figcaption><\/figure>\n\n\n\n<p>Ahora nos dirigimos al StarterAssets<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXffsubsyuZLzLbEPWqfGo6mZ4FCjFziR0v7lO1_lpcIVeiJh4PzD4O_q7eli98kt0w53dwaCUEDZ4r5wuVt8BF0UNucmnfdLYSmWb2ev9lbp1bzJdOh8y0Qwl_-3cgAmZ6QgOS2?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 61: Carpeta StarterAssets<\/figcaption><\/figure>\n\n\n\n<p>Seguimos la siguiente ruta<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcHbXwkMba6c0wyqTiDArsIBOpXApimTHvijiqwgrpeH7-RNSyXTndlt49W9PjjHX5fzWtClN8TWJPIPtW8MzR1-0UDWkhqzTtaGsAbsdaIBXCPXIVEPIbO-NL5ceRkA6d4ttQoaQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 62: Ruta a Seguir<\/figcaption><\/figure>\n\n\n\n<p>Cargamos donde dice Nestedplayerarmature<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfHrbKJGze0qH5S3jnxVLKb6CAtRZ_snQ7kQAW3lz8mHCyHh1xXFUgULRyKY1ma6v0eAGOQzqgrnk2th6Re3p2VSzUKHI2ag8QSDQ-McuvGfialsYi8kts2CzAvk9D2EzrJSf75Pg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:341px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 63: Nestedplayerarmature<\/figcaption><\/figure>\n\n\n\n<p>Arrastramos nuestro personaje en donde dice player armature<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdstGf6Y9cvSdLlJJI_NLJUtgivraUwYkMvTvCz4FKFnUrX2MKEH8ggeX3Wo0BOUv1CDZQRqUCpQUwr5hHnufW_U7kfTiv5vBi_hkrd1CxXaQAoZUgtIOS6TPrCemGrO0GzeDEu?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 64: Implementaci\u00f3n Personaje<\/figcaption><\/figure>\n\n\n\n<p>Se ajustan a una altura similar y se ponen en la misma posici\u00f3n<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd8plQ4ptKHhTitc0U9IKMqLZtuhAflBe7CrMT8Wvj1j00DwIoxwBope4dES4IACmPwXIELoZfDorpkZD5LKs_OntYCHExbkALrOPnrTnq9mXdVcMogd3bywpWdt4tw2qaGF-psIg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 65: Ajuste Personaje<\/figcaption><\/figure>\n\n\n\n<p>Se desmarca donde dice geometry para que se quite el robot<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXegIuNcrTtV1fZjOySZaJp6m7Hx_DpFuSix-5EILGJaWV1COgj9sSug913lPjGKIiqyQH2LculGHRNvva1_OMmrsNkW22iypDYx6yBN8yh0WyDw49L0keoJ--OGsfXkGHLoJqJy?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 66: Desmarcaci\u00f3n Robot<\/figcaption><\/figure>\n\n\n\n<p>Ahora seleccionamos PlayerArmature desde la jerarqu\u00eda<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcbpJUdit7hV4Y0dkwFSqDlyEAhux75fpMS5szYqpnFRdGxmv0z7kRdAXycyzAKJWDsQwaR31ITLNlJUIwu3HC0bbaRaD4xezFrPa6bjXiDaISXHvujZspNjCUW33LvmGvzNXMPVQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 67: Selecci\u00f3n PlayerArmature<\/figcaption><\/figure>\n\n\n\n<p>Y en Animator donde dice avatar arrastramos el avatar que tiene nuestra animaci\u00f3n<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdiv6Hv6qUSJhDXF7igj5yC59TClYiN63PSBpDgr5jIPdOBppS-FZgQArbKVfIPx1b3QF_XWITnjmg_ofi4fHFVGKp-j8VC6aiEsAvsFlsCmSkVnfuYTnsQgDXQKP6xAByzaSpTQw?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 68: Ventana Animator<\/figcaption><\/figure>\n\n\n\n<p>Con esto nuestro personaje ya ser\u00e1 jugable<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf8zVrse8jqmB9-epDc8dc4np-ArJjDPGzYNiFerdjglkYZeyCJM8HOvF0v2rOGY7rSG4A9-WgV2jTjXWR-UPDuIgWODk-WjuHHfJBtoIH9nemXqwJvXnOYhiw2-5F_tTg4B1SkxA?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 69: Personaje Jugable<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Implementaci\u00f3n de un Temporizador (Timer) en la Escena del Juego<\/strong><\/h2>\n\n\n\n<p>A continuaci\u00f3n, se describen los pasos realizados para implementar un temporizador de cuenta regresiva dentro de una escena en Unity. Este temporizador se visualizar\u00e1 en pantalla y comenzar\u00e1 en 100 segundos, disminuyendo progresivamente hasta llegar a cero.<\/p>\n\n\n\n<p>Primero, dentro de la escena del juego, creamos un nuevo objeto Canvas, el cual servir\u00e1 como contenedor para los elementos de la interfaz gr\u00e1fica (UI). Dentro de este Canvas, a\u00f1adimos un objeto de tipo Texto (Text), que ser\u00e1 el encargado de mostrar el valor del temporizador.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdoAOiichvGpv16iB8qaSlDN4T0WFuyRLvjHwI8-hFl7YKpH06KhjpHzuep0DCRNGqKT-KjEfGFrog4K1G3ZGb-1DfHjlTAhfHb-WmAmGyLof9aDSOKyi31wPW-g5I68yKYBMig0w?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:265px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 70: Creaci\u00f3n Canvas<\/figcaption><\/figure>\n\n\n\n<p>El componente de texto se ajusta visualmente para que se vea de forma clara durante la partida. Como configuraci\u00f3n inicial, se define el contenido del texto como &#8220;00&#8221;, esto con el fin de mantener el formato visual adecuado para mostrar n\u00fameros con decimales.<br><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXcGxRImIh84hzOpwXQVKN63ZPDsET9Im72F2vzx7iJJ3kM7uGfpVKk9A_pGWzHJgwLy8OzxmI_klgcnMUGbjMkIXNKSRp2IAROWRNE-1ogD1pCaa5G4mvXmy3t6jXVu2N2ztSxS?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 71: Configuraci\u00f3n Texto<\/figcaption><\/figure>\n\n\n\n<p>Posteriormente, se crea un Empty Object (objeto vac\u00edo) dentro de la escena. Este objeto ser\u00e1 utilizado para ejecutar la l\u00f3gica del temporizador. A este objeto le asignamos el script llamado Timer, el cual se encargar\u00e1 de controlar el comportamiento del contador.<br><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd1D7BrOrUfMTpFULXOUB0whYZRRfQ3MVQa_SPDhw6oCLZNucJebjZFHWb4xuzWXW4EipPFylQNQqQTNdaCtfVAfPiXV5V7WvHVbxnP3e6P42n5qeUWbmo_l_Ql0qUsT5DQWtJU?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:191px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 72: Asignaci\u00f3n Script<\/figcaption><\/figure>\n\n\n\n<p>En el objeto vac\u00edo al que se le asign\u00f3 el script Timer, se deben realizar dos configuraciones importantes desde el Inspector:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>En el campo Texto Timer, se arrastra y se asigna el objeto de texto previamente creado dentro del Canvas.<\/li>\n\n\n\n<li>En el campo Timer, se define el valor inicial como 100, lo cual indica que la cuenta regresiva comenzar\u00e1 desde 100 segundos.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf_krUPBVZD8ftMgZlVrBLW97r6WO5Cfxrg-16a_SeCZt0sTMGuwPTek4EW3DYxA_2Ceu8F8G5Jni2vLgZdoT86wy7JdBMMkkLER4jENxg4rtOqV_gm1J3bNavHC2rCpmSdFXfXPQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 73: Configuraci\u00f3n Timer<\/figcaption><\/figure>\n\n\n\n<p>Para mantener el proyecto ordenado, dentro de la carpeta Assets se cre\u00f3 un nuevo folder llamado &#8220;Scripts&#8221;, y dentro de \u00e9l se gener\u00f3 el script Timer.cs, que contiene la l\u00f3gica de funcionamiento del contador.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdDdK6gMx5mwNZ9gI33sBy0npJKoGHb1egf7u4x0acTAqqDqGwwDlc6LMG-cfDZ_lDBrRqmP2w1PpOpPahIjRk9GsVFOfAPaIEBdZqqmVY9P_BHDQ6dxnswFr5Ca9Ca1gCCJb6C?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:330px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 74: Folder Scripts<\/figcaption><\/figure>\n\n\n\n<p>El script Timer est\u00e1 programado en C# y tiene la funci\u00f3n de reducir el tiempo, mostrarlo visualmente en pantalla y tambi\u00e9n reiniciar autom\u00e1ticamente el nivel cuando el temporizador llega a cero. A continuaci\u00f3n, se explica en detalle su contenido:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdkXt4sWDRaHd6cVykTCAkGtSm5WLnwEb5jWzRzXej1vVgnqaNEmw0Cmcusl-CkXrF6qFYcEvpsVRR3VY-MO5BNn1ZQabhqXHQ7ALVttN09YZLI19JAjViC0Vm0Ara7XmQ2hVHi?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 75: Script Timer<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Explicaci\u00f3n del funcionamiento:<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>public float timer = 0;: Declara una variable p\u00fablica que almacena el valor del temporizador. Este valor se puede establecer manualmente desde el Inspector de Unity (por ejemplo, iniciar desde 100 segundos).<\/li>\n\n\n\n<li>public Text textoTimer;: Hace referencia al componente de texto en la UI donde se mostrar\u00e1 el valor actual del temporizador.<\/li>\n\n\n\n<li>En el m\u00e9todo Update(), que se ejecuta en cada frame del juego:\n<ul class=\"wp-block-list\">\n<li>if (timer &gt; 0): Comprueba si el temporizador a\u00fan tiene tiempo restante.<\/li>\n\n\n\n<li>timer -= Time.deltaTime;: Resta al contador la cantidad de segundos que han transcurrido desde el \u00faltimo frame, lo que produce una cuenta regresiva.<\/li>\n\n\n\n<li>timer = Mathf.Max(timer, 0);: Asegura que el valor nunca baje de cero, evitando n\u00fameros negativos.<\/li>\n\n\n\n<li>textoTimer.text = timer.ToString(&#8220;f1&#8221;);: Actualiza el contenido del texto, mostrando el tiempo restante con un solo decimal (por ejemplo: 99.2, 88.7, etc.).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Cuando el tiempo llega a cero o menos:\n<ul class=\"wp-block-list\">\n<li>SceneManager.LoadScene(SceneManager.GetActiveScene().name);: Esta l\u00ednea reinicia la escena actual, permitiendo que el nivel vuelva a comenzar desde el inicio autom\u00e1ticamente.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Con esta mejora, al ejecutar la escena ya se puede observar el temporizador funcionando en tiempo real, contando regresivamente desde el valor inicial definido. Y ahora, una vez el tiempo llega a cero, el juego reinicia autom\u00e1ticamente el nivel, lo que agrega un nuevo nivel de dificultad y presi\u00f3n al jugador, ideal para desaf\u00edos contrarreloj o mec\u00e1nicas de p\u00e9rdida por tiempo agotado.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeAHNs5f0uykqFNDCBPC18eUdWCWz5Jg6ROfRcPrcWFDgXumSobaQ8uTJNj2zjzzwbHXQq2f-ov379S2Q-1nJDgdRqdt4NqrznD0T4v1zZyhvrZHIwKicKmfgAuYQN3Cis8qwf6_g?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 76: Funcionamiento Temporizador<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Recolectables<\/strong> en Unity<\/h3>\n\n\n\n<p>Primero, se deben crear los objetos coleccionables (por ejemplo, gemas, monedas, esferas, etc.) dentro de la escena. A cada uno de estos objetos se le debe a\u00f1adir el componente Box Collider (con la opci\u00f3n Is Trigger activada), y se les asigna el script ObjectInteract para que puedan detectar la interacci\u00f3n con el jugador y ser recogidos.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXffYAaVdVyW6cVxc42Su2-XN5DLGdxtcqbsf0iisjLuNunD9DctsniuQqb_vwRrNsjXizbkev2LESojUgZMYdfL__eG61TlbwMDKz22JkfouPmhCKV3wlNtCmzcvOVerkdJtwIM?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:212px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 77: Creaci\u00f3n Coleccionables<\/figcaption><\/figure>\n\n\n\n<p>Dentro del Canvas de la escena, se debe crear un nuevo objeto de tipo UI &gt; Text (o TextMeshPro, si se est\u00e1 usando TMP). Este objeto ser\u00e1 el encargado de mostrar el n\u00famero de objetos atesorados.<\/p>\n\n\n\n<p>Es importante dejar este campo sin valor visible al inicio (puede decir &#8220;0&#8221;, &#8220;Objetos: 0&#8221;, o simplemente estar vac\u00edo) porque su contenido ser\u00e1 actualizado autom\u00e1ticamente por el script.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf3PNhpI_HPXkzzhBMAl7AA4J6Y3i_b4Psn1lBn9avafDWDMR3Fd63xBbvZPiCzhZcUuHJRbRNEHS4DEg5sEQ1xjwAenRU77-ei7CpxpKYMk78869EsxH0L3K54IfEn84KhnLV1Zg?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 78: Creaci\u00f3n UI<\/figcaption><\/figure>\n\n\n\n<p>Se crea un Empty Object (objeto vac\u00edo) en la escena llamado, por ejemplo, ControladorInventario. A este objeto se le a\u00f1ade el script Inventario.<\/p>\n\n\n\n<p>Luego, en el campo p\u00fablico Texto Inventario del script, se debe arrastrar el objeto de texto del Canvas creado anteriormente para establecer la conexi\u00f3n entre ambos.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfnJERKQ2XQCEHxpGXIjkXOsUJNhc4hkMpDeoxwJOmKjnoafTN6zk28y9FIpLT6ozG4qtJ7FYJm8LiXxkeAjmnNrG-O09dx7XfIRykYG1gFdsLrS0cHziDUT4K5wikhfX_J74A?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 79: Conexi\u00f3n Canvas<\/figcaption><\/figure>\n\n\n\n<p>Para asegurar que el script ObjectInteract encuentre y acceda al sistema de inventario, tambi\u00e9n se debe asignar el script Inventario al jugador (el objeto que tenga el tag &#8220;Player&#8221;).<\/p>\n\n\n\n<p>Adem\u00e1s, en ese mismo script, tambi\u00e9n se debe arrastrar el objeto del texto en el Canvas al campo Texto Inventario, igual que en el paso anterior.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Solo una de las dos instancias del script Inventario ser\u00e1 usada por el objeto acumulable, dependiendo de a cu\u00e1l se acceda desde el tag &#8220;Player&#8221;. Es recomendable que el objeto &#8220;Player&#8221; tenga el control central del inventario para evitar conflictos.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXc-7tRiep7uyg86pR66LgSC3tBHqOU14sjDwyR4nsHQDY-YLa2mMoNBK_GE4psvdNgS6svXP1UdfSjT8E6aGt3dQ486zygrYECX4ee-lLlMEutPd6LYNvOOREG3UCjmgSN7pztXPA?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 80: Script Inventario<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Explicaci\u00f3n del c\u00f3digo ObjectInteract<\/h4>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdtwN9vXoc6Ik3nY2p0S2Qttiol9IH_Dr6cS0LBb21plPzRU4TUi8nRGhzJA99df65E8hPvQzjgFJZubg825RQBNHA69VhK529UkGjvb1p__DHmUJFv2U6EFfkp3hGGYjv9896Jzw?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 81: C\u00f3digo ObjectInteract<\/figcaption><\/figure>\n\n\n\n<p>Este script se encarga de detectar cuando el jugador entra en contacto con el objeto. Al ocurrir la colisi\u00f3n:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Se incrementa la cantidad de objetos reunidos mediante el m\u00e9todo AumentarCantidad().<\/li>\n\n\n\n<li>El objeto se destruye con Destroy(gameObject) para simular su colecci\u00f3n.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Explicaci\u00f3n del c\u00f3digo Inventario<br><\/h4>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd8CUDJRPIKxb4ewTQDPXHPY-r2AOlmvHqcLKqFPAj5yt_0wQKnP8wMtUCiYAHLjENset7aYXltjfHYLkP3mxVXhszo64jSo2epGYvQ-K5jYcs1eUAh03mGBa83VW_oYYL9oAWvhQ?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\" style=\"width:651px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figura 82: C\u00f3digo Inventario<\/figcaption><\/figure>\n\n\n\n<p>Este script lleva el control del n\u00famero de objetos reunidos:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>La variable Cantidad almacena el total.<\/li>\n\n\n\n<li>AumentarCantidad() incrementa esa cantidad y actualiza el texto.<\/li>\n\n\n\n<li>ActualizarTexto() se encarga de reflejar en la interfaz gr\u00e1fica el nuevo valor.<\/li>\n<\/ul>\n\n\n\n<p>Tambi\u00e9n incluye una verificaci\u00f3n que emite una advertencia si no se ha asignado el campo del texto en el Inspector.<\/p>\n\n\n\n<p>Una vez completadas todas las configuraciones anteriores, al ejecutar el juego se puede observar el sistema de recopilaci\u00f3n en funcionamiento de la siguiente manera:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cuando el jugador se acerca y entra en contacto con un objeto coleccionable, este desaparece autom\u00e1ticamente al ser recogido.<\/li>\n\n\n\n<li>Al mismo tiempo, el contador de objetos en el Canvas se actualiza en tiempo real, incrementando su valor y mostrando al jugador cu\u00e1ntos objetos ha recogido hasta el momento.<\/li>\n\n\n\n<li>Esta interacci\u00f3n es fluida y visualmente clara, aportando una retroalimentaci\u00f3n inmediata al jugador sobre su progreso en la colecci\u00f3n.<\/li>\n<\/ul>\n\n\n\n<p>Este sistema no solo mejora la experiencia de juego, sino que tambi\u00e9n permite implementar mec\u00e1nicas adicionales como misiones, desbloqueo de niveles o recompensas basadas en la cantidad de objetos atesorados.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfTp5WCjzc3wAwvAzdl7ENpaDsZq5A13-vhwAIgRvXv40N_NtpHy-oUxGdzbxoR7MNHtlzZpPGHwwxW301gcSDfEeMSC8NYeMTK_kduqPmR7L9UhdeQbWxByKnGgbO5MLogGM4I?key=H5VhotlQmZrl19jJkdxeMQ\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figura 83: Sistema de Recolecci\u00f3n<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Exportaci\u00f3n Android<\/h3>\n\n\n\n<p>El juego fue preparado para ejecutarse correctamente en dispositivos Android. Se configuraron los ajustes del proyecto para:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Plataforma Android (ARM64)<\/li>\n\n\n\n<li>Orientaci\u00f3n horizontal (landscape)<\/li>\n\n\n\n<li>Scripting backend IL2CPP<\/li>\n\n\n\n<li>API m\u00ednima Android 7.0 (API 24)<\/li>\n<\/ul>\n\n\n\n<p>Esto permite compilar el juego como archivo .apk desde Build Settings, y probarlo en tel\u00e9fonos o tablets.<br><\/p>\n\n\n\n<p><strong>Autores: Alexander Forero, Manuel Pinz\u00f3n y Jean Carlo Plata<\/strong><\/p>\n\n\n\n<p><strong>Editor: &nbsp;<a href=\"https:\/\/niixer.com\/?s=Ingeniero+Carlos+Iv%C3%A1n+Pinz%C3%B3n\">Magister Ingeniero Carlos Iv\u00e1n Pinz\u00f3n Romero<\/a><\/strong><\/p>\n\n\n\n<p><strong>Codigo: UCMV-10<\/strong><\/p>\n\n\n\n<p>Universidad:&nbsp;<a href=\"https:\/\/www.ucentral.edu.co\/\">Universidad Central<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Referencias<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Como hacer un Men\u00fa principal en Unity || Tutorial 2025. (2023, May 21). YouTube.de May 24, 2025, de https:\/\/www.youtube.com\/watch?v=cuXoOKSZ00M<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Caminiti, G. (2024, April 28). <em>\u00a1C\u00f3mo Crear un Personaje en Unity 3D! (F\u00e1cil y R\u00e1pido)<\/em>. YouTube. de http:\/\/www.youtube.com\/watch?v=FURegpjm9sY<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">LuisCanary [@LuisCanary]. (s.f.).&nbsp;<em>C\u00f3mo hacer un TIMER en Unity \ud83d\udd52\ud83d\udcaf<\/em>&nbsp;[Video]. YouTube. https:\/\/youtu.be\/dgMImeoZG5w?si=nW4WF1f-DLBHDqO9<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Creaci\u00f3n personajes Para la creaci\u00f3n de nuestro personaje en Unity con nuestro propio rostro, ingresamos a: https:\/\/metaperson.avatarsdk.com Seleccionamos la opci\u00f3n take a selfie donde se abrir\u00e1 un c\u00f3digo qr&nbsp; que deber\u00e1 ser escaneado en nuestro celular, una vez tomada la foto Una vez tomada la foto en la p\u00e1gina seSeguir Leyendo<\/p>\n","protected":false},"author":267,"featured_media":67862,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[77],"tags":[4217,1153,3111,326,4274,836,66],"class_list":["post-67379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-videojuegos","tag-3d","tag-animacion-2","tag-avatares","tag-modelado","tag-tercera-persona","tag-unity-3d","tag-videojuegos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Paso a paso videojuego en Unity Nexus Fear &#8211; Portal de noticias de tecnolog\u00eda, Realidad Virtual, Aumentada y Mixta, Videojuegos<\/title>\n<meta name=\"description\" content=\"En Niixer cuentra los mejores contenidos del mundo de la tecnolog\u00eda | Paso a paso videojuego en Unity Nexus Fear\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Paso a paso videojuego en Unity Nexus Fear &#8211; Portal de noticias de tecnolog\u00eda, Realidad Virtual, Aumentada y Mixta, Videojuegos\" \/>\n<meta property=\"og:description\" content=\"En Niixer cuentra los mejores contenidos del mundo de la tecnolog\u00eda | Paso a paso videojuego en Unity Nexus Fear\" \/>\n<meta property=\"og:url\" content=\"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/\" \/>\n<meta property=\"og:site_name\" content=\"Portal de noticias de tecnolog\u00eda, Realidad Virtual, Aumentada y Mixta, Videojuegos\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/niixer\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-24T08:50:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-28T20:10:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/Captura-de-pantalla-2025-05-28-150251.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"JEAN CARLO PLATA BENAVIDES\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"JEAN CARLO PLATA BENAVIDES\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"29 minutos\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Paso a paso videojuego en Unity Nexus Fear &#8211; Portal de noticias de tecnolog\u00eda, Realidad Virtual, Aumentada y Mixta, Videojuegos","description":"En Niixer cuentra los mejores contenidos del mundo de la tecnolog\u00eda | Paso a paso videojuego en Unity Nexus Fear","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/","og_locale":"es_ES","og_type":"article","og_title":"Paso a paso videojuego en Unity Nexus Fear &#8211; Portal de noticias de tecnolog\u00eda, Realidad Virtual, Aumentada y Mixta, Videojuegos","og_description":"En Niixer cuentra los mejores contenidos del mundo de la tecnolog\u00eda | Paso a paso videojuego en Unity Nexus Fear","og_url":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/","og_site_name":"Portal de noticias de tecnolog\u00eda, Realidad Virtual, Aumentada y Mixta, Videojuegos","article_publisher":"https:\/\/www.facebook.com\/niixer\/","article_published_time":"2025-05-24T08:50:04+00:00","article_modified_time":"2025-05-28T20:10:50+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/Captura-de-pantalla-2025-05-28-150251.webp","type":"image\/webp"}],"author":"JEAN CARLO PLATA BENAVIDES","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"JEAN CARLO PLATA BENAVIDES","Tiempo de lectura":"29 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/#article","isPartOf":{"@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/"},"author":{"name":"JEAN CARLO PLATA BENAVIDES","@id":"https:\/\/niixer.com\/#\/schema\/person\/35c330f39d55abfee616dfde0afde666"},"headline":"Paso a paso videojuego en Unity Nexus Fear","datePublished":"2025-05-24T08:50:04+00:00","dateModified":"2025-05-28T20:10:50+00:00","mainEntityOfPage":{"@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/"},"wordCount":2563,"publisher":{"@id":"https:\/\/niixer.com\/#organization"},"image":{"@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/#primaryimage"},"thumbnailUrl":"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/Captura-de-pantalla-2025-05-28-150251.webp","keywords":["3d","Animacion","avatares","Modelado","Tercera persona","Unity 3D","Videojuegos"],"articleSection":["Videojuegos"],"inLanguage":"es"},{"@type":"WebPage","@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/","url":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/","name":"Paso a paso videojuego en Unity Nexus Fear &#8211; Portal de noticias de tecnolog\u00eda, Realidad Virtual, Aumentada y Mixta, Videojuegos","isPartOf":{"@id":"https:\/\/niixer.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/#primaryimage"},"image":{"@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/#primaryimage"},"thumbnailUrl":"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/Captura-de-pantalla-2025-05-28-150251.webp","datePublished":"2025-05-24T08:50:04+00:00","dateModified":"2025-05-28T20:10:50+00:00","description":"En Niixer cuentra los mejores contenidos del mundo de la tecnolog\u00eda | Paso a paso videojuego en Unity Nexus Fear","breadcrumb":{"@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/#primaryimage","url":"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/Captura-de-pantalla-2025-05-28-150251.webp","contentUrl":"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/Captura-de-pantalla-2025-05-28-150251.webp","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/niixer.com\/index.php\/2025\/05\/24\/unity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/niixer.com\/"},{"@type":"ListItem","position":2,"name":"Paso a paso videojuego en Unity Nexus Fear"}]},{"@type":"WebSite","@id":"https:\/\/niixer.com\/#website","url":"https:\/\/niixer.com\/","name":"Portal de noticias de tecnolog\u00eda, ciencia, Android, iOS, Realidad Virtual, Aumentada y Mixta, Videojuegos, computadores, todo lo mas reciente en tecnolog\u00eda","description":"Portal de noticias de tecnolog\u00eda","publisher":{"@id":"https:\/\/niixer.com\/#organization"},"alternateName":"Niixer","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/niixer.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/niixer.com\/#organization","name":"Niixer","alternateName":"Niixer.com","url":"https:\/\/niixer.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/niixer.com\/#\/schema\/logo\/image\/","url":"https:\/\/niixer.com\/wp-content\/uploads\/2022\/08\/logo-niixer-sin-fondo-1.png","contentUrl":"https:\/\/niixer.com\/wp-content\/uploads\/2022\/08\/logo-niixer-sin-fondo-1.png","width":140,"height":140,"caption":"Niixer"},"image":{"@id":"https:\/\/niixer.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/niixer\/","https:\/\/www.instagram.com\/niixer.tecnologia\/"]},{"@type":"Person","@id":"https:\/\/niixer.com\/#\/schema\/person\/35c330f39d55abfee616dfde0afde666","name":"JEAN CARLO PLATA BENAVIDES","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/2ab4da8af41d0a50e09a54e2435bdd72ccae14d6dd92853cc3231b8c71643e05?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2ab4da8af41d0a50e09a54e2435bdd72ccae14d6dd92853cc3231b8c71643e05?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2ab4da8af41d0a50e09a54e2435bdd72ccae14d6dd92853cc3231b8c71643e05?s=96&d=mm&r=g","caption":"JEAN CARLO PLATA BENAVIDES"},"sameAs":["http:\/\/www.niixer.com"],"url":"https:\/\/niixer.com\/index.php\/author\/jplatab\/"}]}},"jetpack_featured_media_url":"https:\/\/niixer.com\/wp-content\/uploads\/2025\/05\/Captura-de-pantalla-2025-05-28-150251.webp","_links":{"self":[{"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/posts\/67379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/users\/267"}],"replies":[{"embeddable":true,"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/comments?post=67379"}],"version-history":[{"count":4,"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/posts\/67379\/revisions"}],"predecessor-version":[{"id":67842,"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/posts\/67379\/revisions\/67842"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/media\/67862"}],"wp:attachment":[{"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/media?parent=67379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/categories?post=67379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/niixer.com\/index.php\/wp-json\/wp\/v2\/tags?post=67379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}