Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom properties for Prefab Replacement NOT in scripts #261

Open
willyx78 opened this issue Nov 28, 2023 · 0 comments
Open

Custom properties for Prefab Replacement NOT in scripts #261

willyx78 opened this issue Nov 28, 2023 · 0 comments

Comments

@willyx78
Copy link

willyx78 commented Nov 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant