Skip to content

Engine: Objects refers to prototype entities after cloning #619

Description

@eprikazchikov

Description

Objects refers to prototype entities after cloning

Prerequisites

Create a component with object reference as property.

For example:

class FpsController : public NativeBehaviour {
    A_REGISTER(FpsController, NativeBehaviour, Components)

    A_PROPERTIES(
        A_PROPERTY(Transform *, transform, FpsController::transform, FpsController::setTransform)
    )

    ...
};

And make a prefab with this component with valid transform as a propperty

Steps to Reproduce

  1. Clone the prefab from code
  2. Check Properties

Expected behavior:

Transform refers to object in cloned instance of the prefab.

Actual behavior:

Transform refers to object in the prefab.

Reproducibility:

100%

Versions

2023.2

Additional Information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2This issue should be included to the next release

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done for Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions