Skip to main content

All Questions

Tagged with
0 votes
0 answers
21 views

Exception when initializing CastingDevicePicker in Unity for UWP (Hololens 2)

I'm currently working on a Unity project that targets UWP, and I need to implement a feature to connect via Miracast. I'm trying to use the CastingDevicePicker from the Windows Runtime API, but I'm ...
Nathan Dubernard's user avatar
0 votes
2 answers
73 views

How can I fix my movement code? The player won't move correctly

I am new to coding and c#, but I have been trying to make my player without gravity affecting it. But my player keeps moving up and doing nothing else. I have started by trying to make it move to the ...
Adeline Haun's user avatar
-1 votes
2 answers
48 views

Is there any way to check if a KeyValuePair<string, int> contains a specific Key in a Dictionary in one line?

In my code I have a Dictionary, which at first was just <string, int>. However, I needed a way for two things with the same string to be separate elements in the Dictionary, so I made the Key ...
polelord's user avatar
0 votes
1 answer
47 views

Character does not move in Unity

I wrote the code in Unity hoping that the character can move in all directions in two dimensions if I press the direction key. (If I press the shift key, it moves fast.) However, after writing the ...
codebetatester's user avatar
0 votes
1 answer
79 views

Unity 3D - Raycasts wont register in time if player has high enough velocity

hope someone here smarter than me can figure out my mistake. I have a simple platformer game using raycasts to check if you’re standing on the ground. I tried colliders, but started using raycasts to ...
Madswint's user avatar
0 votes
0 answers
51 views

Maze in Unity - calculating shortest path and changing material

The problem seems to be that for some reason the ApplyMaterial only goes to the target cell and does not even try to change the materials of the other cells accordingly. I want the solver to find a ...
SpaceNugget's user avatar
-1 votes
0 answers
38 views

I can't understand why my raycast doesn't see my interactable object (key) but it does work with my interactable object (door)?

So the first thing I want to see is if my ray understands that my key is an interactable, but I do this via the interface, for example check if the whole object is type IInteractable and if it is run ...
ipatios's user avatar
1 vote
1 answer
33 views

How to create multiple independent spaces and run them simultaneously in Unity

I created a project using unity mirror assets. I separated the server Unity project and the client Unity project. Using the central processing server method, everything has to be processed on the ...
star's user avatar
  • 11
-5 votes
0 answers
38 views

How to set the falloffIntensity on a Light2D from a script?

I need to change the FalloffIntensity parameter, which script to access and how to do it? I've combed through a lot of sites and either this information doesn't work, or I don't fully understand ...
Delepiv's user avatar
0 votes
2 answers
39 views

How to make loading UI wait for level data to finish loading before hiding?

I'm developing a game where I load level data from a JSON file and instantiate objects and terrains (SpriteShape) based on the data. I'm using Unity with C#. My issue is that my loading UI hides ...
Precoded's user avatar
0 votes
1 answer
67 views

How can I force enable V-Sync in Unity?

I'm using Unity Engine. Some players turn off V-Sync in Video Driver Settings, which leads to very high FPS and overheating of the video card. This code doesn't work: QualitySettings.vSyncCount = 1; ...
MaltProgrammer's user avatar
1 vote
1 answer
47 views

ScriptableObject changes in Awake() not displayed in Inspector until after Unity restart

I've created a ScriptableObject class MySO that gets modified in its Awake() function. I also added EditorUtility.SetDirty(this); as its last command. The class has a List<someOtherClass> myList ...
Gabriel Balassa Turu's user avatar
0 votes
1 answer
30 views

Unity using Resources.Load in a Generic class

So i have multiple data types like armorData, weaponData, itemData etc and wanted to make a generic resource load for them (they are scriptable Objects) but apperently T or system.Object is not ...
Rakkan Main's user avatar
0 votes
1 answer
11 views

Unity: Animations Work in Animator Window but Character Freezes in Scene When Switching Animations via Coroutine

using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using Random = UnityEngine.Random; public class CreatureController : MonoBehaviour { public Animator ...
Beliz Yazıcı's user avatar
-1 votes
0 answers
18 views

Unity: Recording specific application window at high frame rate

I'm writing a VR thing, that needs to record a specific application window at a very high frame rate, like every frame of the monitor... i cant find anything that does that currently im using ...
user26034200's user avatar

15 30 50 per page
1
3 4
5
6 7
2887