DynamicContainer
Obsolete, and does nothing.
Nebula · Packages/com.1by3.nebula/Runtime/Containers/DynamicContainer.cs[Obsolete("A Container on an entity's root is carried by the entity without this component. Remove it with Nebula > Migrate > Remove DynamicContainer.")]
[DisallowMultipleComponent]
[AddComponentMenu("")]
public sealed class DynamicContainer : MonoBehaviourObsolete, and does nothing. A Container on an entity's root, next to its NetworkIdentity, is carried by that entity on its own now (Container.FrameMode is ContainerFrameMode.Entity): it registers when the entity spawns and unregisters when it despawns, and NetworkIdentity.Carried reaches it. Remove this component with Nebula > Migrate > Remove DynamicContainer, which strips it from every prefab and open scene. It is kept for one release so projects still load, and is no longer a NetworkBehaviour, so it takes no behaviour slot on the entity.
Properties
Volume
public Container Volume { get; }The Container on the same object.
Contents
public IReadOnlyList<NetworkIdentity> Contents { get; }The entities inside the carried container on this process. Use Container.Entities.
IsRegistered
public bool IsRegistered { get; }Whether the container on this object is registered as carried. Use Container.IsDynamic.
Methods
OfRigidbody
public static DynamicContainer OfRigidbody(Rigidbody body);The component on the carrier that owns body, or null. Use Container.OfRigidbody.
IsCarrierGeometry
public static bool IsCarrierGeometry(Collider collider);