Files
defrain-shooter-unity/Assets/Mirror/Components/InterestManagement/Distance/DistanceInterestManagementCustomRange.cs
2021-10-25 09:20:01 +02:00

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;
}
}