/r/Unity3D

Photograph via snooOG

A subreddit for News, Help, Resources, and Conversation regarding Unity, the game engine


News, Help, Resources, and Conversation. A User Showcase of the Unity Game Engine.

Remember to check out /r/unity2D for any 2D specific questions and conversation!


Download Latest Unity

Rules and Wiki


Please refer to our Wiki before posting! And be sure to flair your post appropriately.

Main Index

Rules and Guidelines

Flair Definitions

FAQ

Chat Rooms


Use the chat room if you're new to Unity or have a quick question. Lots of professionals hang out there.

/r/Unity3D Discord

FreeNode IRC Chatroom

Helpful Unity3D Links


Official Unity Website

Unity3d's Tutorial Modules

Unity Answers

Unify Community Wiki

Unity Game Engine Syllabus (Getting Started Guide)

50 Tips and Best Practices for Unity (2016 Edition)

Unity Execution Order of Event Functions

Using Version Control with Unity3d (Mercurial)

Related Subreddits


/r/Unity2D

/r/UnityAssets

/r/Unity_tutorials

/r/GameDev

/r/Justgamedevthings (New!)

/r/Gamedesign

/r/Indiegames

/r/Playmygame

/r/LearnProgramming

/r/Oculus

/r/Blender

/r/Devblogs

Tutorials


Brackeys

  • Beginner to Intermediate

  • 5 to 15 minutes

  • Concise tutorials. Videos are mostly self contained.

Sebastian Lague

  • Beginner to Advanced

  • 10 to 20 minutes

  • Medium length tutorials. Videos are usually a part of a series.

Catlike Coding

  • Intermediate to Advanced

  • Text-based. Lots of graphics/shader programming tutorials in addition to "normal" C# tutorials. Normally part of a series.

Makin' Stuff Look Good

  • Intermediate to Advanced

  • 10 minutes

  • Almost entirely shader tutorials. Favors theory over implementation but leaves source in video description. Videos are always self contained.

Quill18Creates

  • Beginner to Advanced

  • 30 minutes to 2 hours.

  • Minimal editing. Mostly C#. Covers wide range of topics. Long series.

Misc. Resources


Halisavakis Shaders Archive

Infallible Code

World of Zero

Board to Bits

Holistic3d

Unity3d College

Jabrils

Polycount Wiki

The Big List Of Game Design

PS4 controller map for Unity3d

Colin's Bear Animation

¡DICE!


CSS created by Sean O'Dowd @nicetrysean [Website], Maintained and updated by Louis Hong /u/loolo78

Reddit Logo created by /u/big-ish from /r/redditlogos!

/r/Unity3D

390,539 Subscribers

1

Convert STL to Unity3D

Is there a way to accomplish this with out purchasing the software?

1 Comment
2024/11/10
16:54 UTC

2

Testing a new song and improving the setting of my rhythm game

0 Comments
2024/11/10
16:37 UTC

1

In VFX graph, how to spawn N particles with K seconds in between, then stop emitting?

I am new to VFX graph but even ChatGPT can't help me figure out a simple way to have the particle system spawn N particles with some delay in between, then stop.

I've tried every possible spawn rate option, constant, periodic, single. Nothing works. Constant and periodic just spawn endlessly. If I add a SpawnEventLifetime node, it seems to have no effect or is ignored for some reason

0 Comments
2024/11/10
16:16 UTC

10

Issues with terrain after Unity 6 upgrade

3 Comments
2024/11/10
16:00 UTC

14 Comments
2024/11/10
15:26 UTC

11

Beyond Vengeance. Mixing stealth with action and brutality :D

4 Comments
2024/11/10
15:02 UTC

14

Programmer art: before and after

0 Comments
2024/11/10
13:57 UTC

0

Orthographic camera (FOV close to 0) without massive camera distance of 1000 meters/units?

Hi all,

I've been wanting to make a scene that has a true orthographic camera, without any depth or perspective, and
Managed a little by setting FOV slider to 5, and putting the camera insanely far away, but is there a better way to do this?

It sounds like I'm using a weird workaround which should not be needed, and it's also causing me some issues, wanting me to find a different way to get this effect.

Many thanks for any advice or help!

3 Comments
2024/11/10
13:38 UTC

1

Resolving Packages Error in Unity 6?

Hey guys, I'm pretty new to Unity and I was playing around with Unity 6000.0.17f1 for an ocean scene and I noticed that I have these 3 errors. I'm trying to install the Splines package so I can install Cinemachine, instead, it comes up with an error adding packages and doesn't let me install it. Anyone know what's going on? Thanks!

3 errors

Splines error

Splines error console

3 Comments
2024/11/10
11:26 UTC

1

Help with Wave System

I followed a tutorial about creating a wavesystem for my game. The way it works is I define which enemies to spawn for each wave but I want it to automatically create new waves with a modifier that increases enemies each higher wave. I don't know much about lists. Can anybody help me out?

Code:

public class WaveManager : MonoBehaviour
{
    [Header("Wave System")]
    public Wave[] waves;
    public float countdown;

    [Header("SpawnPoints")]
    public Transform[] spawnPoints;

    [Header("References")]
    public TMP_Text waveText;

    public int currentWaveIndex = 0;
    int currentWave;

    private bool readyToCountDown;

    private void Start()
    {
        readyToCountDown = true;

        for (int i = 0; i < waves.Length; i++)
        {
            waves[i].enemiesLeft = waves[i].zombies.Length;
        }
    }

    private void Update()
    {
        if (currentWaveIndex >= waves.Length)
        {
            Debug.Log("You won");
            return;
        }

        if (readyToCountDown)
        {
            countdown -= Time.deltaTime;
        }

        currentWave = currentWaveIndex + 1;

        if (countdown <= 0)
        {
            readyToCountDown = false;
            countdown = waves[currentWaveIndex].timeToNextEnemy;
            StartCoroutine(SpawnWave());
        }

        if (waves[currentWaveIndex].enemiesLeft == 0)
        {
            readyToCountDown = true;
            countdown = waves[currentWaveIndex].timeToNextWave;
            currentWaveIndex++;
        }
    }

    private IEnumerator SpawnWave()
    {
        waveText.text = currentWave.ToString();

        if (currentWaveIndex < waves.Length)
        {
            for (int i = 0; i < waves[currentWaveIndex].zombies.Length; i++)
            {
                int spawn = Random.Range(0, spawnPoints.Length);

                if (spawnPoints[spawn].gameObject.activeSelf)
                {
                    ZombieController zombieController = Instantiate(waves[currentWaveIndex].zombies[i], spawnPoints[spawn].transform);
                    zombieController.transform.SetParent(transform);
                } else
                {
                    ZombieController zombieController = Instantiate(waves[currentWaveIndex].zombies[i], spawnPoints[0].transform);
                    zombieController.transform.SetParent(transform);
                }

                yield return new WaitForSeconds(waves[currentWaveIndex].timeToNextEnemy);
            }
        }
    }
}

[System.Serializable]
public class Wave
{
    public ZombieController[] zombies;
    public float timeToNextEnemy;
    public float timeToNextWave;
    public int enemiesLeft;
}
3 Comments
2024/11/10
11:00 UTC

81

Matrix Phone Exit Effect in Unity, for cutscene.

I would like to create an effect in Unity that looks like this scene from the matrix, where Morpheus is kinda… morphed into the fabric of the matrix. Almost looks like liquid glass.

Anyone have any idea where I could start?

10 Comments
2024/11/10
10:05 UTC

293

Fully real time Global Illumination, based on run time world voxelization, now running on the new Unity 6 URP RenderGraph in all modes, including Forward, Forward+ and Deferred.

24 Comments
2024/11/10
09:44 UTC

0

Is your IQ above average?

Is your intelligence above average? If you said yes, try to solve the mystery of The Cat. It is really hard so only a few people have ever solved it.

https://reddit.com/link/1gnwxi6/video/4vlrmrvnl10e1/player

https://thecatgamecompany.itch.io/thecat

5 Comments
2024/11/10
09:25 UTC

2

How do I find the average between n contact points? (for jumping)

So, I'm using code to average between the Collision.contacts, but
the problem is, it takes a lot of time to find the collision average, and then, it takes time to go back to Vector 1 (for ground).

What am I doing wrong? Can anyone help?
I tried adding * 1000f, but it didn't really change things.

I tried to do summedNormalPoints = Vector3 Zero in stay and in exit, but it just stopped averaging, and in exit it was chaotic (sometimes worked, sometimes not).

Code:

    void OnCollisionStay(Collision collisionVariableStay) {

        platformGameObjectColStay = collisionVariableStay.gameObject;
        //Debug.Log("Collisionstays");

        //currentPlatform = platformGameObjectColStay;
        currentPlatform = platformGameObjectColStay;

        //Create a ContactPointVariable for jumping
        foreach (ContactPoint contact in collisionVariableStay.contacts) {

            summedNormalPoints = summedNormalPoints + contact.normal * 1000f;

            averageContactPointNormal = summedNormalPoints.normalized;

            contactPointVariable = contact.normal;
        }   
 }
1 Comment
2024/11/10
05:57 UTC

1

Need help

Hey fellers. Switched from Unreal to unity for an internship project. I need to calculate the moolank number. I have it's script ready and need to integrate it with UI. How am I supposed to do that. Can you guys guide me

8 Comments
2024/11/10
05:31 UTC

1

Having a few issues with first-person cinemachine setup?

I switched from my main camera setup but have had some issues converting what I had in order to get cinemachine to function. I got it working on another empty project but with I believe the same settings I can't get it working correctly. I've looked at tutorials but they're 1-2 years old and a bunch of the settings are in different places so it's quite overwhelming.

https://preview.redd.it/y2bmupg4f00e1.png?width=410&format=png&auto=webp&s=f99e95dde63d7654ff77ec905bc076a46225d1f4

I have my cm virtual camera on its own in the hierarchy as well as the default main camera which has a cm brain on it. As a child of my player object I have an empty "cameraFollow" object which I use in the inspector of the cm virtual camera in the Follow slot. The cameraFollow object is positioned at my players head for first-person.

I tried both "Do nothing" and "POV" for Aim, adjusted some settings but they felt much worse. But this is what I get:

https://preview.redd.it/nj23nch7f00e1.png?width=378&format=png&auto=webp&s=5f0fb7ada0c0541de81f72c0bf72e4557dcfe9d6

2 Comments
2024/11/10
05:24 UTC

4

What kinds of textures, music, sound effects, or models are you having a hard time finding?

Hey, everyone! In the past, I've shared my free music and sound packs here, and I've recently started expanding my offerings to include textures, models, and more. I wanted to ask you all—what kind of resources do you find difficult to locate for your game projects?

7 Comments
2024/11/10
02:55 UTC

7

Unity Equivalent of Unreal's CalculateDirection

Hi,

Is there a method in unity that returns a rotation from -180 to 180, given a vector3? Planning to pass that into a blend tree alongside velocity.

5 Comments
2024/11/10
02:44 UTC

21

added mic input lip syncing for 'open mic night' in my life sim. could be fun for streamers?

5 Comments
2024/11/10
02:04 UTC

1

AR Project

Hello,

I’m trying to recreate this Japanese Pocari commercial where they use AR. This is the behind the scene video.

It seems like they photo scanned the outdoor scene and put it in unity. And used Quest (and they said they had to develop their own software to play objects as far as 120m) to place the objects. But I’m lost at how they put everything together.

Obviously, they have a whole team so my project won’t be as grand as their project but I’m wondering if I can make something like this using Unity.

Let me know what you think and thank you for reading.

4 Comments
2024/11/10
01:59 UTC

8

When I first saw "Bodycam" game, I was very hyped and immediately tried what I could do in Unity. Found that video on archive today and looks really sucks :D but want share anyway

3 Comments
2024/11/10
00:35 UTC

16

Wanted to share small progress of my fps project (more in comments)

5 Comments
2024/11/10
00:21 UTC

1

humanoid/generic animations incompatible?

Hi,

i have brought an animation pack from the asset store, but when i want to use that animation in the animator nothing really happens.

Note: i already have some animations working already, it just looks like this one animation is broken or not compatible with my character.

After some research it looks like my character has either humanoir or generic animations already and the new animations are from the other type, but iam confused on how to figure out which type of animations i brought and how to convert them to the other type.

Thanks for your help

EDIT: in the animator transition preview, the moment the new transition happens my character just stops moving in the preview

1 Comment
2024/11/09
23:25 UTC

0

Help with the visual

My camera broke:( how to fix

3 Comments
2024/11/09
20:18 UTC

1

A little help with animations and movement?

I have this animations for my game (I aim for a hack and slash kind of game) but I need that the gameobject moves with the animations

https://preview.redd.it/y6ip36w7nxzd1.png?width=1897&format=png&auto=webp&s=6897a62af661683b5912b7ecf2bd1fe9405f397b

A visual representation of my problem

https://preview.redd.it/qv30xvtsnxzd1.png?width=453&format=png&auto=webp&s=ff6ed39bb864417fa25cc673c6521a4fbb89b9a1

If Anyone could help me (or redirect me to the correct subreddit if necesary) I would be so thankfull

1 Comment
2024/11/09
20:10 UTC

35

✨Just added extraction and location doors🚪 to Joint Recall! Now you’ll need to find🔍 your way out - or get locked in🔒!

1 Comment
2024/11/09
19:48 UTC

Back To Top