Please understand that I am not good at English before the text.
I want to get RectTransform.sizeDelta.y which is inactive object.
So I Use This Code
void OnEnable()
{
this.transform.GetChild(1).gameObject.SetActive(true);
Debug.Log(this.transform.GetChild(1).gameObject.GetComponent<RectTransform>().sizeDelta.y);
this.transform.GetChild(1).gameObject.SetActive(false);
}
But, It Returns 0…
How Can I fix It?