A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
public interface ifX {} public struct X : ifX { public string myName; } public struct Y : ifX { public string myName; }...
The context: Dictionary<Enum, List<Class>> abc = new Dictionary<Enum, List<Class>>(); The attempt: abc[enumVar].Add(classVar); The error: The...
From following script: public void Awake() { var i = 0; while (i < 1000000) {...
All fantastic and very informative answers, thank you guys.
After a long journey I realized I can make my code 20 times more readable thanks out parameter which I convieniently never knew about. However I...
// public ThisClass(..., ..., ..., ..., List<MyStruct> thisItem, ...) { Log("Type: " + thisItem.GetType()); // "Object reference not set to an...
Well, I guess I'll have to do it dirty. Thanks. wut?
typeof(UnityEngine.UI).ToString() Type name expected, but namespace name found
The item is the namespace. I don't have a class of which I need a namespace, the item I'm comparing against is a namespace, it's not a class....
And my post tells me: First post still unedited.
I have something like this: nameof(ClassA.ClassB.ClassC.ClassD.item And as expected it returns "item", however I need the full of that thing I'm...
If I want to invoke a desired baked method during initialization I could add Dictionary<string, Func<bool, string, int>> and every time I need to,...
(nevermind, I found it)
Good day, I started my endeavor on learning IL weaving with Cecil for one particular target reason which can't be solved by conventional means. I...
So lets just start with basics. Here's hierarchy in question: Hierarchy > Canvas > Parent > NewSpawn I have a simple script which Instantiates...