You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
546 B
16 lines
546 B
// 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 = 20;
|
|
}
|
|
}
|