Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 77301

Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

2 votes
Accepted

UI Toolkit, Get the topmost Element under the cursor

the answer seems to be IPanel.Pick var picked = rootVisualElement.panel.Pick(evt.mousePosition);
Venay's user avatar
  • 207
1 vote
1 answer
491 views

UI Toolkit, Get the topmost Element under the cursor

Basically, I'm making a small node system, Just for fun. And I need to know if I can get the topmost Element under the cursor. I need it to connect nodes. Thanks!
Venay's user avatar
  • 207
1 vote
0 answers
1k views

How do I work around the "You are missing the recommended JDK" error?

Install the recommended version using Unity Hub. I installed the JDK using Unity Hub many times now, still the same error. Tho I don't think it's getting installed. …
Venay's user avatar
  • 207
1 vote
1 answer
6k views

using #if UNITY_EDITOR && !UNITY_ANDROID greys out the code

I'm trying to exclude part of my code when building(android) but keeping it while in the editor for testing purposes. Using #if UNITY_EDITOR only will result in this code getting built, but using #i …
Venay's user avatar
  • 207
0 votes

Trying to define a custom Composite to the new Unity Input System but failing somewhere

I still don't know what's wrong with my script, but I wrote a identical one in another project and it worked like a charm. Here is the new script: using UnityEngine; using UnityEngine.InputSyste …
Venay's user avatar
  • 207
0 votes
1 answer
5k views

Unity's new Input system does not work after building the game

I've made a test project to test the new Input system pointers (touch and mouse), in the editor, everything works perfectly however when I build the game they don't. it's like there is not an input sy …
Venay's user avatar
  • 207
0 votes
1 answer
1k views

Trying to define a custom Composite to the new Unity Input System but failing somewhere

I'm following the "Touch Samples" sample project that comes with the "input system" package. In one of the sample scene, there is a script that defines a custom composite Binding (for example the 2D …
Venay's user avatar
  • 207
3 votes
1 answer
119 views

Why does the object rotate to a random direction when I start dragging?

I'm trying to do drag to rotate sort of thing, so far the code is fine. However when starting to drag (left clicking first), the object rotate to a random direction first which looks odd. here is my …
Venay's user avatar
  • 207
0 votes
1 answer
741 views

Animator State does not switch immediately through code, even tho all transitions have "Has ...

first of all, this is my code, I'm prototyping a state machine using Unity Animator (First Time) and I'm stuck coding a simple burst of speed. …
Venay's user avatar
  • 207
1 vote
Accepted

Animator State does not switch immediately through code, even tho all transitions have "Has ...

As @DMGregory pointed out, the Issue was that Transition Duration of 0.25 seconds which forced the state to hold until a quarter of a second passes. Making the Transition duration zero solved the p …
Venay's user avatar
  • 207