Reverting prefab from project

Issue #24 resolved
Carlos Mangas created an issue

Everytime I try to revert the entire object of any prefab it doesn't work and Unity logs these:

  • Density cannot be set on the collider unless it is attached to a rigid-body that is using auto-mass. System.Reflection.PropertyInfo:SetValue(Object, Object, Object[]) AntiheroStudios.uPrefabs.Editor.uPrefabComponentProcessor:OnCopyComponent(GameObject, Component, GameObject, Component) (at Assets/Extensions/AntiheroStudios/uPrefabs/Editor/uPrefabComponentProcessor.cs:45)

  • NullReferenceException: Object reference not set to an instance of an object AntiheroStudios.uPrefabs.uPrefab.get_containingPrefab () (at Assets/Extensions/AntiheroStudios/uPrefabs/uPrefab.cs:46)

Comments (2)

  1. Carlos Mangas reporter

    Something is happening with rigibodies because I have a DynamicMovementComponent script which has a IsRunning property that references the rigidbody2D and it crashes when I try to drop the prefab on the hierarchy:

    NullReferenceException: Object reference not set to an instance of an object DynamicMovementComponent.get_IsRunning () (at Assets/Scripts/Main/Entities/Components/Movement/Dynamic Movement Component/DynamicMovementComponent.cs:125)

  2. Log in to comment