SuperTiled2Unity icon indicating copy to clipboard operation
SuperTiled2Unity copied to clipboard

Custom properties for Prefab Replacement NOT in scripts

Open willyx78 opened this issue 1 year ago • 0 comments

Hi again, with Custom properties in Tiled i can change properties for Prefab Replacement ONLY of scripts. I cannot change values of BoxCollider2D, SpriteRenderer ecc. Only of my scripts. In gameObjectExtensions.BroadcastProperty u call var components = go.GetComponentsInChildren< MonoBehaviour >(); but u should call var components = go.GetComponentsInChildren< Component >(); to check in all components, not only scripts.

Obviously FindXXXBySignature should change the type of param.

willyx78 avatar Nov 28 '23 09:11 willyx78