Hello,
I wanted to ask how to save image(texture) component for later work even when program is restarted.
Because now when I exit program and restart it image component is missing.
Is there any possible way to save image component?
It should be saving, depending on where the component is can you explain a little more?
Do you mean: The texture reference on the picture field is missing on your custom component? If so, where is the texture stored? To be saved, it needs to be an asset. When you create the asset via code, you also should mark it as dirty. If you have written a custom editor for your component, you should use the SerializedProperty-system to handle saving (dirty flags), if you use don’t use them, you need to set the scene dirty to persist your changes on the component. If the component lives on a prefab and you handle everything yourself, you need to mark the prefab asset as dirty.