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.
RE: compilation, it's fine to have the subject and observer reference each other. It's only circular if they each use the other's reference to...
I figured it out. The root of the problem was my misconception of the relationship between the model, the view, and the controller. I was thinking...
I have a tree view in an editor window. I populate it with Categories, and each category has a collection of items, very similar to Unity's...
I had similar trouble with [InitializeOnLoad] in a very similar scenario. I solved it by inheriting from AssetPostprocessor and overriding...
EDIT: "InvalidCastException" is a typo. It's actually InvalidOperationException. I'm on Unity 2022.3.19f1. I write a scriptable object class...
We can broadly categorize prefabs into two primary use cases: cloning and subdividing. Cloning: Sometimes, you just need to make a pool of...
If anyone else runs into a similar issue, I ended up going with my idea of newing up a dummy game object, adding a component onto it, and using...
I think I should have been clearer. In some cases, the script will be deleted if the system autogenerated it. In others, the c# file will merely...
I have a custom type derived from MonoBehaviour in an editor script. The script can't know in the moment whether there are any current instances...
What you're after is possible. If you generate new c# code, you don't need to dirty it like other assets. Dirty is just a flag for Unity...
If anyone is wondering if my last two posts are just two different ways to do this... don't use bindItem to register mouse events. It's a huge...
I stand corrected again. I came across the TreeView.selectionChanged callback, which is of type Action<IEnumerable<object>>, which I assume is a...
For anyone else who is wondering, I just answered my own question. After more testing, I realized I hadn't properly identified the repro...
I built a TreeView following the documentation as close to the letter as possible from the "Create a tree view" section on this page:...
I do that for all my SOs, but I guess I assumed that part is built into the SaveAsPrefabAsset command, which is included in the EditingScope, yes?...
I appreciate the help. I just tried this suggestion, but no luck yet. I need to run this operation on multiple fields at once, and oddly enough,...
I wanted to update the prefab file of a nested prefab. I saw PrefabUtility.EditPrefabContentsScope() was invented in this thread and it looked...
FYI, I'm not sure if it's the same issue, but I am able to throw this HashCodeCollisionException in 2020.3.18f1 any time I write an unreferenced...
I dig it. I'm totally onboard with eliminating Load scenes, although I do like to configure my singletons in inspector. It's why we bother making...
There's a lot of back-and-forth about what constitutes a singleton in this thread. In the spirit of hoping to avoid reiterating that I don't think...