C# 클래스 UnityMainThreadDispatcher, OpenFace-FACS-Unity-Facial-Animator

A thread-safe class which holds a queue with actions to execute on the next Update() method. It can be used to make calls to the main thread for things such as UI Manipulation in Unity. It was developed for use in combination with the Firebase Unity plugin, which uses separate threads for event handling Adapter from here: https://github.com/PimDeWitte/UnityMainThreadDispatcher
상속: MonoBehaviour
파일 보기 프로젝트 열기: alexismorin/OpenFace-FACS-Unity-Facial-Animator 1 사용 예제들

공개 메소드들

메소드 설명
Enqueue ( Action, action ) : void

Locks the queue and adds the Action to the queue

Enqueue ( IEnumerator, action ) : void

Locks the queue and adds the IEnumerator to the queue

Exists ( ) : bool
Instance ( ) : UnityMainThreadDispatcher,
Update ( ) : void

비공개 메소드들

메소드 설명
ActionWrapper ( Action, a ) : IEnumerator,
Awake ( ) : void
OnDestroy ( ) : void

메소드 상세

Enqueue() 공개 메소드

Locks the queue and adds the Action to the queue
public Enqueue ( Action, action ) : void
action Action, function that will be executed from the main thread.
리턴 void

Enqueue() 공개 메소드

Locks the queue and adds the IEnumerator to the queue
public Enqueue ( IEnumerator, action ) : void
action IEnumerator, IEnumerator function that will be executed from the main thread.
리턴 void

Exists() 공개 정적인 메소드

public static Exists ( ) : bool
리턴 bool

Instance() 공개 정적인 메소드

public static Instance ( ) : UnityMainThreadDispatcher,
리턴 UnityMainThreadDispatcher,

Update() 공개 메소드

public Update ( ) : void
리턴 void