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
- Clone the prefab from code
- 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
Description
Objects refers to prototype entities after cloning
Prerequisites
Create a component with object reference as property.
For example:
And make a prefab with this component with valid transform as a propperty
Steps to Reproduce
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