GameObject createCutScene(GameObject paper, int index, CutScene cutScene) { GameObject cutSceneObject = createCutScene(paper, index); cutSceneObject.GetComponent <RawImage>().texture = cutScene.GetTexture(); RectTransform rectTransform = cutSceneObject.GetComponent <RectTransform>(); rectTransform.sizeDelta = cutScene.GetSize(); rectTransform.localScale = new Vector3(0.1f, 0.1f, 1); return(cutSceneObject); }