TryFindComponentOnEntityContainerOrParent no fail please
TryFindComponentOnEntityContainerOrParent would fail trying to Resolve on parents that don't have the component its searching for. This prevents that by changing the Resolve to TryComp.
Isn't the trycomp just equivalent to the old resolve? Unless people are passing in components via the ref? I have no idea why this method even takes in a ref comp
yeah shouldnt foundComponent be out instead of ref
Agreed, I switched it to out and tested that it works recursively as expected.
Fortunately I think I'm the only person who has tried to use this on content so there's nothing to fix!
Isn't the trycomp just equivalent to the old resolve? Unless people are passing in components via the ref? I have no idea why this method even takes in a ref comp
I have no idea why it was using ref. I don't think there's any uses of the method on content, probably because of its scrungliness, and the method that returns all found parent components instead of the first one doesn't use ref and also uses trycomp instead. As for if they're functionally different, the resolve throws an assert if any of the parents while recursing don't have the component, which is no good here. Also as ref it required you to pass a ref, which is not needed imo, and unintuitive.
Bump. It's just a bugfix, not new functionality.
Hokay, made it ref again to avoid the breaky.
Bump