Search Results
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 |
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.
0
votes
How can I assign disabled Text ui to array in the Inspector?
The array is of type Text, which is the type of a component, but you're trying to drag an object which contains the Text component, which is of type GameObject. Make your array of type GameObject[] an …
1
vote
How to find out the type of GameObject selected in the scene?
Note that a TextMeshProUGUI is a Component, not a GameObject. When you add a TextMeshProUGUI component it adds it to a new GameObject by default, which can be confusing. To make this more confusing, i …
1
vote
Preload scene in unity
You can load the next scene asynchronously using SceneManager.LoadSceneAsync() using coroutines. You can use this strategy on a splash / loading screen if you're wanting to see it load before showing …
1
vote
Getting user id from one scene then to the next scene
If you're using Photon, you should be able to set each user id in one of the following ways:
Once authenticated, a Photon client will keep the same UserID until
disconnected. The UserID for a cl …
3
votes
Accepted
Instantiating Prefabs at run time
You will need to also Instantiate the object before setting it's parent transform as it's not yet an instance when you call LoadAssetAsync.
See the docs here:
https://docs.unity3d.com/Packages/com.un …
0
votes
How to flip the player without local scale and velocity problems?
Instead of setting the localScale, you can use rotation to achieve a similar effect:
transform.Rotate(Vector3.up * 180);
This will "flip" your object by rotating 180 degress around the up axis. This …