zombie_mp/Assets/Mirror/Components/InterestManagement/Distance/DistanceInterestManagementCustomRange.cs
Sewmina Dilshan 68183e5317 initial
2021-08-23 13:28:33 +05:30

15 lines
418 B
C#

// add this to NetworkIdentities for custom range if needed.
// only works with DistanceInterestManagement.
using UnityEngine;
namespace Mirror
{
[RequireComponent(typeof(NetworkIdentity))]
[DisallowMultipleComponent]
public class DistanceInterestManagementCustomRange : MonoBehaviour
{
[Tooltip("The maximum range that objects will be visible at.")]
public int visRange = 20;
}
}