DistanceInterestManagementCustomRange.cs 547 B

123456789101112131415
  1. // add this to NetworkIdentities for custom range if needed.
  2. // only works with DistanceInterestManagement.
  3. using UnityEngine;
  4. namespace Mirror
  5. {
  6. [DisallowMultipleComponent]
  7. [AddComponentMenu("Network/ Interest Management/ Distance/Distance Custom Range")]
  8. [HelpURL("https://mirror-networking.gitbook.io/docs/guides/interest-management")]
  9. public class DistanceInterestManagementCustomRange : NetworkBehaviour
  10. {
  11. [Tooltip("The maximum range that objects will be visible at.")]
  12. public int visRange = 100;
  13. }
  14. }