Table of Contents

Class TuringProvider

Namespace
Turing.Core.Utility
Assembly
Turing.Core.dll
[ExecuteInEditMode]
[DefaultExecutionOrder(-1000)]
[DisallowMultipleComponent]
public sealed class TuringProvider : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
TuringProvider
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Extension Methods

Fields

ScriptPriority

public const int ScriptPriority = -1000

Field Value

int

doubleWidthFlag

[HideInInspector]
public int doubleWidthFlag

Field Value

int

portrait

[HideInInspector]
public bool portrait

Field Value

bool

screenSizeInInch

[HideInInspector]
public float screenSizeInInch

Field Value

float

Properties

CurrentDisplay

public static TuringDisplay CurrentDisplay { get; }

Property Value

TuringDisplay

CurrentFrame

public static TuringFrame CurrentFrame { get; set; }

Property Value

TuringFrame

DisplayInch

public static float DisplayInch { get; }

Property Value

float

DisplayMetersPerPixel

The meters per pixel conversion factor computed from the current DisplaySize and DisplayReferenceResolution.

[Obsolete("Use DisplayMetersPerPixelForReferenceResolution or DisplayMetersPerPixelsForNativeResolution instead.")]
public static Vector2 DisplayMetersPerPixel { get; set; }

Property Value

Vector2

Remarks

This property is deprecated. Use either the DisplayMetersPerPixelForReferenceResolution or DisplayMetersPerPixelsForNativeResolution property instead. See the comments for these two properties for guidance on which one to use.

DisplayMetersPerPixelForNativeResolution

public static Vector2 DisplayMetersPerPixelForNativeResolution { get; set; }

Property Value

Vector2

DisplayMetersPerPixelForReferenceResolution

public static Vector2 DisplayMetersPerPixelForReferenceResolution { get; set; }

Property Value

Vector2

DisplayReferenceResolution

public static Vector2Int DisplayReferenceResolution { get; }

Property Value

Vector2Int

DisplayReferenceSize

public static Vector2 DisplayReferenceSize { get; }

Property Value

Vector2

DisplayResolution

public static Vector2Int DisplayResolution { get; }

Property Value

Vector2Int

DisplayScaleFactor

public static float DisplayScaleFactor { get; set; }

Property Value

float

DisplaySize

public static Vector2 DisplaySize { get; }

Property Value

Vector2

IsInitialized

public static bool IsInitialized { get; set; }

Property Value

bool

PixelsizeScreen_mm

public static float PixelsizeScreen_mm { get; set; }

Property Value

float

ScreenAspectRatio

public static float ScreenAspectRatio { get; }

Property Value

float

StylueScaler

public static float StylueScaler { get; }

Property Value

float

StylusTarget

Gets a reference to the default stylus target.

public static TuringTarget StylusTarget { get; set; }

Property Value

TuringTarget

Remarks

If TuringProvider.IsInitialized is false, this property will be set to null.

TuringCamera

public static TuringCamera TuringCamera { get; set; }

Property Value

TuringCamera

ViewerScale

public static float ViewerScale { get; set; }

Property Value

float

WindowSize

public static Vector2 WindowSize { get; }

Property Value

Vector2

WindowSizePixelsForNativeResolution

public static Vector2Int WindowSizePixelsForNativeResolution { get; }

Property Value

Vector2Int

WindowSizePixelsForReferenceResolution

public static Vector2Int WindowSizePixelsForReferenceResolution { get; }

Property Value

Vector2Int

Methods

InitInfo()

public void InitInfo()