Skip to content

Is there a way to use "normal" object properties like Width and Height with prefab replacements #267

Open
@markus1978

Description

@markus1978

Thanks for the great tool. Maybe it can even help me with this problem.

I know that we can use custom properties and assign them to public fields or setters on a script in a prefab replacement. But is it also possible somehow get the "normal" build-id tiled object properties like Width, Height, X, Y etc. transferred.

May particular use case is importing ellipses or rects. Here i want to assign the Width and Height to the transform scale and correct the transform position to the middle of the object. By default, SuperTiled2Unity does not seem to override the transform scale from the prefab and takes the top-left of the object (I guess this is what the X, Y in tiled refers to) and assigns it to the transform position.

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