Skip to content

Custom properties for Prefab Replacement NOT in scripts #261

Open
@willyx78

Description

@willyx78

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions