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.
I think OP is being funny, but in case they're not: For the purposes of this comment, let's say data is memory you can read and write, but not...
You're passing the variable 'bullet' to Instantiate before it's declared. A typo I guess - you probably want to pass the prefab of bullet as the...
I was wrong: in C# you cannot overload assignment. Sorry - that probably means the behavior will be optimizable even in the case of complex types.
I think OP might appreciate a simple answer: it depends. With primitive types the compiler will optimize it and in other cases I wouldn't worry...
This is an unimportant issue, but I feel like if I pull on this thread I might learn something interesting: if I create a blank scene in a new...
For reference, I'm talking about the line NativeSlice.cs:395 in the repository you linked. More of a typo than a bug.
Oh, hey, thank you! By the way, I think I either found a (minor) bug, or I misused the C# decompiler:...
Alternatively, why can't the containers just be open source? I am sure the world's 67,458th implementation of std::span is not a trade secret....
NativeSlice has a member named Stride. The docs are even less helpful than usual: "Returns stride set for Slice." I am guessing that stride is...
By the way, I found https://forum.unity.com/threads/is-this-the-valid-pattern-to-convert-a-gameobject-now.843754/ which seems to suggest what I'm...
Hello, In my current DOTS code, I am creating a BlobAssetStore in Awake and calling Dispose on it in OnDestroy, like so: private BlobAssetStore...
Well anyway, in case anyone wants a snippet that does hamming weight, this is what I'm using, ported from a C algorithms book: private static int...
Apologies for my lack of general C# knowledge. C# doesn't seem to have a portable population count function - the best I could find is the...
Maybe to be explicit, I of course see what you mean and 100% agree. I just like pontificating about language design/
If we're talking about this, I wish C# were less schizophrenic about initialization. Either make zero values idiomatic, like Go does, or go to...
Quick question that I can't find the answer to in the docs: do the CalculateDistance overloads which take a reference to a list of hits fill the...
Ah, I didn’t see that link. Thanks.
Maybe I'm reading this differently from most people, but this sentence in the Quaternion docs strikes me as wrong: "Rotating by the product lhs *...
I think there are some other potential problems with what you’re suggesting, but the first one to occur to me is that such a trail would only...
I rolled my own trail renderer this weekend that's compatible with the ECS. It works fairly well. I am building the vertices in a system during...