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,,
m_Image = GetComponent<Image>();
As shown here the pen image should be replaced in the floor
我相信您应该使用
GetComponent()。sprite
并设置一个精灵而不是图像。