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 |
C# is a multi-paradigm, managed, strongly typed, garbage-collected, programming language created by Microsoft in conjunction with the .NET platform.
0
votes
0
answers
239
views
How to make an Inspector field accept references to instances of different classes
I have a variable in my Unity script, and I want to be able to assign to that variable an object of one of two different classes; for instance:
[SerializedField] private MyClass1 myClass1;
[Serialize …
0
votes
0
answers
65
views
Unity question about tilemap
So if I planning to make big location like for example Stardew Valley with tile size 32x32, should I make all map and just have it, or should I load tiles as player moves to them. I actually new to th …
0
votes
1
answer
318
views
Attach images via script into array unity
I have 3 objects of Image type in game scene. So I need to attach this 3 objects via script into Image array inside of this script. How can I do this? I tried to use GetComponent but they all have dif …
0
votes
1
answer
52
views
Instantiate only specific objects in Unity
Here is the situation: I have 10 weapons in my game, in main menu player may choose only two weapons that could take to the game, and this information about two weapons will save in a kind of "invento …
0
votes
Instantiate only specific objects in Unity
I found the solution by loading from Resource folder.
GameObject weaponOne = Instantiate(Resources.Load("Gun1"), this.gameObject.transform) as GameObject;