Open yewnyx opened 2 years ago
The asset container is supposed to be created by Animator As Code, with its integrity under the ownership of Animator As Code.
Due to this, the container must only return non-null objects after invocation of this method, this is an invariant.
An implicit null check is not the correct solution here.
What operations did you perform on the asset container prior to this issue occuring?
I cleared out the contents of my FX animator controller, as I intended to move it over to AAC.
If there is an indication in the documentation that AAC owns the asset container, it doesn't seem clear to me, but armed with that understanding, it's much clearer to see after the fact. However, I am still somewhat lost as to where AAC is supposed to create the asset container - the examples throw ArgumentNullException
s unless one is created and provided to them.
subAsset can be null for some strange reason, so do the type checks on subAsset (which all fail 'null') before accessing subAsset.name