m_Image = GetComponent<Image>();
i am trying to put a list of images and whenever clicked i want to replace clicked image to a plain . as i am a beginner in unity please share your thoughts,,
答案 0 :(得分:0)
我相信您应该使用
GetComponent<Image>().sprite
并设置一个精灵而不是图像。
答案 1 :(得分:0)