All Questions
446
questions
0
votes
0
answers
41
views
Unity Textmesh Pro is blurry/pixelated
I am new to Unity and I'm having trouble with the text in my project. The text appears very pixelated, and I can't figure out why.
Here is an example of how it looks:
I started a new 2D project, ...
0
votes
1
answer
30
views
The Instantiate function for my gun script in Unity is instantiating the bullets as though they were child objects
My gun script Instantiates the bullets as though they were child objects of the gun which causes the bullets to move whenever my gun is moved.
I had been testing the shooting ability of my gun by ...
0
votes
0
answers
38
views
Display Turn UI object only for the player with turn in unity netcode NGO
I struggle to display the turnUI objects only for the player with the turn.
Objective; make turnUI objects only visible when player.HasTurn == true.
and only visible on the specific player's screen ...
0
votes
1
answer
60
views
Moving sphere to a 2D waypoint on terrain in a 3D space Unity
Im trying to create an animation using Unity3D where I have a world which is created by converting a heightmap into a terrain.
Using a python program I am calculating a route for this sphere and am ...
-1
votes
2
answers
100
views
In Unity why cant I append this game object to an array. Error: ArgumentNullException: Value cannot be null. Parameter name: source [duplicate]
Here is the code being use:
private void start()
{
for (int i = 0; i < 5; i++)
{
GameObject card = Instantiate(deck[i], playersHandContent.transform);
card.GetComponent<...
0
votes
0
answers
45
views
Why doesnt 'Instantiate' not exist according to Unit
I'm encountering an issue in my Unity script where the Instantiate method is not being recognized. I'm trying to instantiate a projectile in a ranged attack state, but I'm getting the following error:
...
0
votes
1
answer
2k
views
moving pivot point of an object in unity
This is the object I am trying to move the pivot of:
I am currently trying to move the pivot point of this object to the center, since i need it to be centered there for a script i am making, does ...
0
votes
0
answers
51
views
how to remove jerk in player movement?
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class swipeMovement : MonoBehaviour
{
private float movementSpeed = 0.0055f;
private Touch ...
0
votes
0
answers
46
views
How can I access variables from a clone of this Game Object in Unity C#?
I am trying to make a bunch of water particles bounce around a box and off of each other using Verlet integration. Currently I can spawn particles by pressing space using the Instantiate(); Method in
...
1
vote
1
answer
102
views
GameObject not showing in script
The public game object is missing in unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SelectionManager : MonoBehaviour
{
...
0
votes
1
answer
95
views
Unity SpriteRenderer changes but no visual change
I have an element that I am trying to change its appearance using a spriterenderer, and while my sprite changer script successfully changes the sprite renderer in the inspector, there's no visual ...
0
votes
4
answers
81
views
On Collision not working for gameobject. C#/ Unity
IDK what I'm doing. On collision is not working does the mouth have to have ridged body? Or should I use ontrigger.
0
votes
1
answer
91
views
Enemy doesn't follow player, is my code bad?
I'm trying to make it so that an enemy follows the player (in unity 2d). It worked before with the exact same code but after renaming the file the enemy just stands still.
Code:
using System....
0
votes
2
answers
774
views
Unity Events from Animations are not getting triggered
I'm using an Animator to animate the player, and an Animation Blend to transition from different walking animations.
Now, I wanted to add walking SFX to the player. I saw ressources online about the ...
0
votes
0
answers
471
views
'Find' is not allowed to be called from a MonoBehaviour constructor, call it in awake or start instead (but I did)
I'm getting the following error:
"UnityException: Find is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from ...