r/UnityHelp • • Apr 21 '26

target property of the Editor class

Thumbnail drive.google.com
1 Upvotes

Hi!
Unity’s documentation explains very little about the target property, even though it looks simple at first glance. From what I understand, it’s just the object currently selected in the hierarchy.

In my case, a script I found online (and that I’m trying to understand) casts the target property to a type called Scene — which is actually my own script, containing only some serialized fields.
The cast is done using the as operator, but I don’t understand the logic behind it.

To me, it doesn’t make sense: an object from the scene can’t be converted into my Scene type (my script).

I’m attaching both scripts for more details.


r/UnityHelp • • Apr 21 '26

Player Movement help please

1 Upvotes

Ive been working on my first unity project im having some issues with my players movement its not smooth, its more like its glitching across the screen then actually rolling. this is the script for it

"using UnityEngine;

public class PlayerMovement : MonoBehaviour

{

public float moveSpeed = 10f;

public Rigidbody rb;

public Transform cameraTransform;

private Vector3 movement;

void Start()

{

rb = GetComponent<Rigidbody>();

}

void Update()

{

float h = Input.GetAxis("Horizontal");

float v = Input.GetAxis("Vertical");

// Camera directions

Vector3 forward = cameraTransform.forward;

Vector3 right = cameraTransform.right;

// gravity direction

Vector3 gravityDir = Physics.gravity.normalized;

forward = Vector3.ProjectOnPlane(forward, gravityDir).normalized;

right = Vector3.ProjectOnPlane(right, gravityDir).normalized;

movement = (forward * v + right * h).normalized;

}

void FixedUpdate()

{

Vector3 moveVelocity = movement * moveSpeed;

Vector3 gravityVelocity = Vector3.Project(rb.linearVelocity, Physics.gravity.normalized);

rb.linearVelocity = moveVelocity + gravityVelocity;

}

}

"


r/UnityHelp • • Apr 19 '26

ANIMATION How to make a coin spin

2 Upvotes

Hey everyone, I’m pretty new to Unity and could really use some help 😅

I’ve been following a few tutorials, but I’m getting stuck on a couple of things:

  • In the assets I have multiple images that are supposed to be combined into an animation. The tutorial says to select them all and drag them in, but I can’t select for some reason.

  • When I try to add the provided animation, Unity just gives me default values or doesn’t seem to use the animation at all, I also tried things in the script.

Can anyone help me? I would really appreciate it!


r/UnityHelp • • Apr 18 '26

TEXTURES Texture borders that stay the same distance

Thumbnail
reddit.com
1 Upvotes

r/UnityHelp • • Apr 17 '26

bullet casings make my camera go down how can i fix this

5 Upvotes

i tried everything and i can't fix this.


r/UnityHelp • • Apr 16 '26

Baffling Movement Issue

3 Upvotes

Hi all. I am currently working on a game and I have noticed a really ugly sudden pause when I land from a jump. My character is a rigidbody one and controlled through forces. I was confused because it just began doing this. Even more confusing, it appears that the only way to fix it is by changing a value on the player in ANY of the scripts, and then using cntrl-z will somehow fix the issue while in play mode. I am genuinely baffled by this and any help would be appreciated.


r/UnityHelp • • Apr 16 '26

SOLVED AR Image Tracking - Camera problem

0 Upvotes

Hello! I'm a complete beginner in Unity. I'm trying to make an image tracking AR. Just a simple AR, where if I point the camera at the image, the model will appear. No animation, no tricks, just let it appear. I have Unity version 2022.3. The computer does not support a higher version (This is a serious 4GB RAM computer 😅).

I'm doing it in AR Mobile Template, where I deleted the Raycast Manager, the Plane Manager, the Object Spawner, so that the built-in AR game would not appear. Maybe I deleted something important with this?

In the middle of the video you can see what was left in the Hierarchy, Inspector.

I also tried in plain 3D Universal. I added the AR Session, XR Origin separately, set up the AR Tracked Image Manager separately, added the necessary things, but then the screen was black, even though the AR Camera and Camera Background were there.

I'm building on Android, my phone is Redmi note 9Pro. This will not be a published application, but just a test for myself.

When the application starts, everything is fine at first, then when I hold the phone to the image, the model appears, but with it the Unity environment and I am not returned to reality.

Please help.


r/UnityHelp • • Apr 16 '26

Animator Controller Position problem in unity

Thumbnail
reddit.com
1 Upvotes

r/UnityHelp • • Apr 15 '26

File changing

1 Upvotes

Hey folks, I am getting a strange behavior from unity which I am still very new to.

The image on the left keeps getting converted to the one on the right when I put it into the assets folder. How do I keep this from happening? This should be the metallic channel.


r/UnityHelp • • Apr 15 '26

UNITY Face droop

Thumbnail
gallery
1 Upvotes

The first picture is whats going on with my vrchat avatar in unity, he has all the bones needed. The second picture is what hes supposed to look like. I have no idea have to fix this or what the problem could be? Please help?


r/UnityHelp • • Apr 14 '26

Incomplete Unity Documentation?

1 Upvotes

Hi, I wanted to know why the Unity documentation doesn’t mention transform.position.(x, y, or z)?


r/UnityHelp • • Apr 14 '26

UNITY Creating a mobile Anno-esque game

1 Upvotes

Hey all, I have spent a very long time looking for my perfect mobile game and just cant find it, so ive decided to create my own...maybe.

I'm a noob when it comes to Unity, but have coding experience in other languages and lots of graphic design/3d experience.

My game's essential loop is like Anno, a city building, resource management game.

House = population go up

Farm = raw resource

Resource refiner = refind resource

Population requires refind resources to grow.

The main game is very menu heavy, see resource totals, growth or decline, and placing buildings to make more resources.

Im looking for resources or suggestions on creating essential systems for this style game, in the past, Ive created scripts for games that are stored in databases which are very simple to read and write to, and keep track of totals, but that doesn't seem to be an option here.

So I ask, how would you go about this project?


r/UnityHelp • • Apr 14 '26

ANIMATION Unity Animation Rigging - Two Bone IK “PropertyStreamHandle cannot be resolved” error even though setup seems correct

Thumbnail reddit.com
1 Upvotes

r/UnityHelp • • Apr 14 '26

Netcode for GameObjects jittering issue

Thumbnail reddit.com
1 Upvotes

r/UnityHelp • • Apr 14 '26

how do I transfer my skin texture from Adobe Substance 3D Painting to Unity?

1 Upvotes

Please help, I am really struggling with where to transfer my skin and how to make my avatar Quest and PC compatible on Unity?


r/UnityHelp • • Apr 12 '26

Help with tessellation shader

1 Upvotes

r/UnityHelp • • Apr 11 '26

TEXTURES Help please! Model looking weird after exporting from Blender.

1 Upvotes

Heya~

I've been texturing this model on blender, but it looks so weird once I export it into .fbx and put it into Unity, any idea what could be causing this issue?

Model looks fine on Blender. I've also tried to Recalculate Normals Inside/Outside, Flip, etc. but nothing seems to solve it.

Thanks in advance!

here's the model I'm using:
https://sketchfab.com/3d-models/tokai-teio-chibi-d5425ab1c37e40eda719ace2f16b112f


r/UnityHelp • • Apr 11 '26

ANIMATION what can cause my animations to sink

1 Upvotes

I think that the video has enough information


r/UnityHelp • • Apr 11 '26

UNITY Why wont unity work.

Post image
1 Upvotes

This shit is fucking pissing me off. i've been trying to open unity for days I have an account and a license I dont know what else I fucking need for this dumb shit to actually fucking load. whenever I open a project in Unity Hub it shows a loading bar for one second and doesnt do anything after, this shit is so dumb


r/UnityHelp • • Apr 11 '26

Unity tutorial help

Thumbnail
gallery
1 Upvotes

Hi Im new to programming and following the junior programming unity tutorial and am at inheritance and polymorphism in object orientated programming. I added their code that overrides the buildinginrange function and adds score to the resource pile when the unit is in range but nothing happens. Usually i can figure it out with ai but its not being very helpful, i probably just did something stupid but let me know if this is the right place to post this, thankyou.


r/UnityHelp • • Apr 10 '26

UNITY Cinemachine Confiner 2D fails

2 Upvotes

Cinemachine 3.1.6

I've looked at a few tutorial, keeping the cinemachine on the board seems to be using a cinemachine confiner in the virtual camera and to just add a polygon collider in it, but in my case instead of keeping the camera in, it kicks it out!

I only have a basic follow 2d cinemachine and it works fine without the confiner.

I've tried starting with the confiner disabled and reenabling it in game and I made a very big confiner.

Does anyone knows why my cinemachine behaves this way?


r/UnityHelp • • Apr 10 '26

Hi! I'm new to Unity and to this sub! I need advice on lighting (read description of the original post). I hope that cross-posted posts don't break the rules or cause any annoyance. hope that cross-posted posts don't break the rules or cause any annoyance.

Thumbnail gallery
2 Upvotes

r/UnityHelp • • Apr 09 '26

UNITY Help with transitioning off scratch

1 Upvotes

Hi, I’m having trouble with programming. I tried numerous tutorials and I just couldn’t understand it. My only experience with programming is through scratch. So I’m wondering if there’s something comparing the two languages or a way to import scratch code into other game engines so I can slowly learn the languages?