ut-Basic Blocks

ut-Basic Blocks
Basic Blocks are the building blocks for creating Unity Projects and Scenes.

u-WebGL – Itch

u-WebGL – Itch
WebGL is a great way to provide access to your Unity Projects.

u-WebGL General
You can develop in Unity. Note that items that are mouse clicks will be touch objects when viewed on the web.
u-WebGL – install in Unity
u-WebGL – Publish
u-WebGL – upload to ITCH

  1. Open Unity
    Check to see that the WebGL Publisher is installed, if not install it.
  2. Create the Project in Unity
  3. Publish the project to build the build file
  4. Zip the file
  5. Open Itch and upload the file.

=============

u-3300 Text Mesh Pro TMP

u-3300 Text Mesh Pro TMP

Text Mesh Pro is the basic app used ot crete text in Unity Projects.


using TMPro;
public TextMeshProUGUI lbtext;// This is the FIELD NAME, not the actural text

lbtext.text = “lb Title”; // code to change listbox on screen

===================
TMP – TEXT COLOR WILL NOT CHANGE – CHANGED FONT TO
ROBOTO.
— MMAKE SURE YOU HAVE IMPORTED TMP ESSETNIALS
 RESOURCES FORM WINDOW -> TMP PRO—
Make sure ALL associated packages are installed from windows\Text Mesh Pro . Text will not display if fonts are not installed, and not message is displayed.
=================================
Steps

Set Game Windoww to desired resolution
– 1920 x 1080
this will be the canvas size.
create canvas
set camvas tp screem camera
– set to camera view
– assign a camera (main camera)

camvas size will correspont to the game window setting.
Open the EventSystem game object
set First Selected to Canvas.

Create pael game object. P0go
Create the panel as child ot P0go.
-resize to fill canvas
– set color


======== TMP BUTTON =================
video tutorial good

——– save ——-
add a button to the TMP canvas
UI -> TMP Button
   ——– save, return to Unity ——–
.Create name and open new C# script.
– make sure to include: using TMPro;
    enter code for the output variable
——– save –return to Unity——
. Create and name new empty.
. Add c# script to the output field –
THIS IS AN OUTPUT FIELD, YOU CANNOT READ IT


     in the clicked script section
      -drag and drop from UI canvas -Text
        to the empty script field
——– save ——-
select the tmp button on the TMP canvas. Connect
in the button clict event  add the empty  object c# script to the button   click event
     – press the small + at bottom of click event          to add new event.
——– save ——-

——– save ——-




u-0700 Unity Layout

u-0700 Unity Layout

0710 Default View – This is the official Unity documentation for the Unity Interface.

When we first opened unity we see it in the default view. This is the basic Unity layout. The user can easily modify the layout to meet the needs of the project they are working on. Once a new layout has been created it can easily be saved and used in any future project. See Windows -> Layout.

Use Scaling to change the the interface text size.
Edit -> Preferences -> Scaling

u-7010 – removing the skybox
u-xxx – change game playing background
edit – preferences – colors – general – game mode tint

u-7020 Top Menu
File Edit Assets GameObject ….. Windows Help
u-7100 Panels


u-7110 Hierarchy Panel

It has four primary sections.

The hierarchy section.

The screen view section

The inspector panel

The project panel

 The hierarchy section.

The screen view

The inspector panel

Unity Project Panel
While you’re in unity working on a project and you have your panels showing the current scene you are in you can search for data by using a search bar above the control panel. When you type in the definition that you want to look for it will find all objects that match that definition for example if you’re looking for a script it will show you all of the scripts. Once you find the script you want and you drag it to the object you want it attached to you can simply move to the end of the search bar and press the small X which will clear the search bar and return you to your previous panel display.


Icons – skybox – hide show objects – speaker

Panels
The Unity Layout has four primary panels.
Hierarchy

Inspector

Project

Console.

  • 2. Screen Details
    Hierarchy – scene consists of Camera, Directional Light
    – can be visible or not, associated with all on/off icon on top menu.

3. Components
– Cube

U- Need to Know

U-0200 – Need to Know-
u- C# Programming
3d Basics vectors
c# basic programming
basics of animation

u-organization
Unity is a massive application with many associated applications. The earlier you start to organize your files the easier you will later be able to find objects you have created earlier and now need.

Steps

Steps

Today’s life has become incredibly complex.

This complexity can be overcome by creating steps (procedures) for performing these tasks.

u-100 Why Unity

u-0100 – Why Unity, What is Unity
Why
Unity is a free (for development). You can use it to create incredible games and tutorials.
What
Unity is a an application to create interactive 3d applications. It is primarily used to create games in 2d and 3d.

Once you decide to create an interactive 3d program the big decision is is which one to use. This is a critical decision because learning all of the different subjects needed to master 3d is a major undertaking and will require a lot of time and effort. The good news is that these subjects can be learned in small increments as needed.

The two major free applications available for 3d development are Unreal Engine and Unity.
If you are planning a professional career, or making a massive game with high end graphics then you will probably want to learn and use Unreal Engine. If you just want to get started in 3d development then Unity might ge the better choice.

Unity vs Unreal Engine, comparison.

What is Unity, why learn unity?
– best game platform for Webgl. UE5 does not support it
– free
— Need to Know or learn – use STEPS ————————
basic 3d programming

Games made with Unity