NanoPark/Assets/Mirror/Components/InterestManagement/Distance/DistanceInterestManagementCustomRange.cs
2022-01-26 19:10:12 +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;
}
}