DistanceInterestManagementCustomRange.cs 418 B

1234567891011121314
  1. // add this to NetworkIdentities for custom range if needed.
  2. // only works with DistanceInterestManagement.
  3. using UnityEngine;
  4. namespace Mirror
  5. {
  6. [RequireComponent(typeof(NetworkIdentity))]
  7. [DisallowMultipleComponent]
  8. public class DistanceInterestManagementCustomRange : MonoBehaviour
  9. {
  10. [Tooltip("The maximum range that objects will be visible at.")]
  11. public int visRange = 20;
  12. }
  13. }