[ad_1]
In Unity, we will use the Apply() perform of Texture2D to use any adjustments that we have made with SetPixel() or SetPixels().
Is there a solution to test whether or not the feel presently has any unapplied adjustments? I do not see any related properties like IsSoiled or HasUnappliedChanges, however maybe there is a much less apparent solution to test.
My specific use case is that I’ve a texture which is generally solely used for calculations and doesn’t must be displayed on the display screen, so it is usually not essential to name Apply() after altering the feel. However, I’d like to have the ability to preview the feel within the Inspector when a selected part is chosen, which does require that the feel is Applied. I’m questioning if Texture2D has a built-in solution to test for unapplied adjustments; if not, it will not be troublesome to put in writing customized code for monitoring this.
[ad_2]