This error is constantly popping up in Unity after I imported a project.
This is the code :
public static void CameraFadeSwap(Texture2D texture){
if(cameraFade){
cameraFade.GetComponent<Image>().texture=texture;
}
}
The error is:
Assets\Scripts\Utils\iTween.cs(6016,37): error CS1061: 'Image' does not contain a definition for 'texture' and no accessible extension method 'texture' accepting a first argument of type 'Image' could be found (are you missing a using directive or an assembly reference?)
How can it be fixed?