You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MLAPI/MonoBehaviours/Prototyping/NetworkedProximity.cs
+52-11Lines changed: 52 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
usingMLAPI.MonoBehaviours.Core;
1
+
usingMLAPI.MonoBehaviours.Core;
2
2
usingSystem.Collections.Generic;
3
3
usingUnityEngine;
4
4
@@ -37,26 +37,44 @@ public enum CheckMethod
37
37
[Tooltip("How often (in seconds) that this object should update the set of players that can see it.")]
38
38
publicfloatVisibilityUpdateInterval=1.0f;// in seconds
39
39
40
+
/// <summary>
41
+
/// Filter to check objects only on specific layers.
42
+
/// </summary>
43
+
[Tooltip("Filter to check objects only on specific layers.")]
44
+
publicLayerMasklayerMask;
45
+
46
+
/// If enabled, the object will always be hidden from players.
47
+
/// </summary>
48
+
[Tooltip("Enable to force this object to be hidden from players.")]
49
+
publicboolForceHidden=false;
50
+
40
51
/// <summary>
41
52
/// The method to use for checking distance
42
53
/// </summary>
43
54
[Tooltip("Which method to use for checking proximity of players.\n\nPhysics3D uses 3D physics to determine proximity.\n\nPhysics2D uses 2D physics to determine proximity.")]
44
55
publicCheckMethodCheckType=CheckMethod.Physics3D;
45
56
46
57
/// <summary>
47
-
/// If enabled, the object will always be hidden from players.
58
+
/// Specifies whether this query should hit Triggers.
48
59
/// </summary>
49
-
[Tooltip("Enable to force this object to be hidden from players.")]
50
-
publicboolForceHidden=false;
60
+
[Tooltip("Specifies whether this query should hit Triggers (Physics3D only).")]
0 commit comments