Table of Contents

Class ActiveController

네임스페이스
easyar
어셈블리
EasyAR.Sense.dll

activeSelf 를 관리하는 MonoBehaviour 입니다.

기본 전략은 다음과 같습니다. TargetController 는 기본적으로 ActiveWhileTracked 를 사용하고, XROriginChildController 는 기본적으로 ActiveAfterFirstTracked 를 사용합니다.

OverrideStrategy 를 사용하여 기본 전략을 재정의할 수 있습니다. 제어를 끄려면 MonoBehaviour.enabled 를 false 로 설정합니다.

[DisallowMultipleComponent]
public class ActiveController : MonoBehaviour
상속
ActiveController

속성

OverrideStrategy

기본 동작을 재정의하는 데 사용할 수 있는 override 전략입니다.

null 값은 기본 전략을 사용한다는 의미입니다. 전략 모드는 object 의 다른 컴포넌트와 관련됩니다. 값이 있으면 기본 전략을 재정의합니다.

public Optional<ActiveController.Strategy> OverrideStrategy { get; set; }

enabled

ARSession 실행 중 active control 을 활성화/비활성화합니다. 비활성화되면 EasyAR 는 더 이상 activeSelf 를 수정하지 않습니다.

public bool enabled { get; set; }