using System.Collections; using System.Collections.Generic; using UnityEngine; public class SeeThroughCallbackTest : MonoBehaviour { // Start is called before the first frame update void Start() { API_GSXR_Slam.GSXR_Add_SeeThrough_Callback(OnSeeThroughCallback); } private void OnDestroy() { API_GSXR_Slam.GSXR_Remove_SeeThrough_Callback(OnSeeThroughCallback); } private void OnSeeThroughCallback(bool isShowSeeThrough) { this.gameObject.SetActive(isShowSeeThrough); } }