DiagnosticsController Class¶
Description¶
Diagnostics controller for current ARSession . Let it be your develop partner, not the first component to disable.
Enums¶
public enum DiagnosticsController.DumpType |
Types to dump session status. |
public enum DiagnosticsController.DeveloperModeSwitchType |
Developer mode switch type. |
Classes¶
public class DiagnosticsController.MessageResposeOption |
Mession response options. |
MonoBehaviour Messages¶
private void Awake() |
private void Start() |
private void LateUpdate() |
private void OnDestroy() |
Fields¶
DeveloperModeSwitch¶
- C#
public DiagnosticsController.DeveloperModeSwitchType DeveloperModeSwitch
Developer mode switch. You can use the default switch (tap screen 8 times) or define your custom switch or equivalent function to replace develop mode.
If you silently disable developer mode and do not provide a replacement, issue feedbacks to EasyAR may be rejected, expecially for Mega users.
DumpSession¶
- C#
public DiagnosticsController.DumpType DumpSession
The way to dump session status.
MessageRespose¶
- C#
public DiagnosticsController.MessageResposeOption MessageRespose
Mession response options.
CustomDeveloperModeSwitch¶
- C#
public Func<bool> CustomDeveloperModeSwitch
Custom developer mode switch when DiagnosticsController.DeveloperModeSwitch is DiagnosticsController.DeveloperModeSwitchType.Custom . The system will switch developer mode on/off depending on function return at any time.
Properties¶
IsDevMode¶
- C#
public bool IsDevMode { get; }
Is developer mode on.
Methods¶
EnqueueMessage¶
- C#
public void EnqueueMessage(string message, float time)
Add one message for display. The message is handled according to DiagnosticsController.MessageResposeOption.UserInfo in DiagnosticsController.MessageRespose .