Skip to content

HyperlinksSpace/UnityHelloWorld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityHelloWorld – setup and run guide

This project is a minimal Unity 3D scene that:

  • Creates a camera and light entirely from code.
  • Renders the text https://hyperlinks.space/ centered in the viewport.
  • Lets you move the text horizontally with A/D.
  • Lets you zoom in and out with W/S.

Everything is wired up by scripts – you do not need to place any objects manually in the scene.


1. Required software

  • Unity Hub (latest version is fine).
  • Unity Editor 6000.3.11f1 (Unity 6, LTS)
    • You can use a close 6000.3.x LTS if 6000.3.11f1 is not available, but this project was created and tested with 6000.3.11f1.

Install Unity 6000.3.11f1

  1. Open Unity Hub.
  2. Go to the Installs tab.
  3. Click Add.
  4. In the list, locate 6000.3.11f1 (LTS) and install it with:
    • Your target build platform support (at least Windows Build Support (IL2CPP) if you want Windows builds).

2. Opening this project in Unity

  1. Clone or download this repository to your machine, for example:

    https://github.com/HyperlinksSpace/UnityHelloWorld.git
    cd UnityHelloWorld
  2. Open Unity Hub → Projects → Add.

  3. Select the UnityHelloWorld folder (this folder, which contains the Assets, ProjectSettings, etc. directories).

  4. In the project list, make sure the Editor version is set to 6000.3.11f1:

    • If it is different, click the version dropdown next to the project and select 6000.3.11f1.
  5. Click the project to open it.
    The first open may take a few minutes while Unity imports assets and compiles scripts.


3. Running the scene

The scripts are set up so that any scene (even an empty one) will work:

  1. After Unity finishes loading, open the default scene or create a new empty scene.
  2. Press Play at the top of the editor.
  3. At runtime, the code will automatically:
    • Create a Main Camera (orthographic) if one does not exist.
    • Create a Directional Light if one does not exist.
    • Create a HelloWorld3DText GameObject with the text https://hyperlinks.space/.
    • Center the text in the viewport and scale it to fill most of the width.

Controls

  • A / D – move the text left and right across the screen.
  • W / S – zoom the camera in and out (changes orthographic size).

4. Project structure (high level)

  • Assets/Scripts/PlayerMover.cs
    • Handles horizontal movement of the object it is attached to (A/D input).
  • Assets/Scripts/HelloWorldText.cs
    • Static bootstrap class using [RuntimeInitializeOnLoadMethod].
    • Ensures there is a camera and light.
    • Spawns the 3D text, fits it to the viewport, and attaches PlayerMover.
    • Contains a small internal component that lets the camera zoom with W/S.

You normally do not need to attach these scripts to any GameObjects manually; they are driven by code at startup.


5. Building the project (optional)

If you want a standalone build:

  1. Open File → Build Settings….
  2. Choose your target platform (for example Windows).
  3. Click Add Open Scenes to include your current scene.
  4. Click Build (or Build and Run) and choose an output folder.

6. Notes and troubleshooting

  • Compiler errors prevent Play mode
    If Unity says “All compiler errors have to be fixed before you can enter playmode”, open the Console (Window → General → Console) and look at the first error. It will usually point to a missing package, a typo, or a script that was removed/renamed.

  • “The referenced script (Unknown) on this Behaviour is missing!”
    This means a GameObject in your scene has a component referencing a script that no longer exists (for example, an older version of a script). Select each object in the Hierarchy, look in the Inspector for components labeled Missing (Mono Script), and remove them via the component’s context menu.

  • Version mismatch warnings in Unity Hub
    If you open the project with a different Unity version than 6000.3.11f1, Unity may show a warning that the project was made with another version. In most cases it will still open, but if you run into unexpected issues, install and use 6000.3.11f1 for best compatibility.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages