DistanceInterestManagementCustomRange.cs 547 Bytes
Newer Older
cann-alberto's avatar
cann-alberto committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// add this to NetworkIdentities for custom range if needed.
// only works with DistanceInterestManagement.
using UnityEngine;

namespace Mirror
{
    [DisallowMultipleComponent]
    [AddComponentMenu("Network/ Interest Management/ Distance/Distance Custom Range")]
    [HelpURL("https://mirror-networking.gitbook.io/docs/guides/interest-management")]
    public class DistanceInterestManagementCustomRange : NetworkBehaviour
    {
        [Tooltip("The maximum range that objects will be visible at.")]
        public int visRange = 100;
    }
}