If I do the following:
It doesn't matter what dimensions I specify, not to mention that the Material should have no dimensions until I give it a texture. What exactly is it that doesn't "match"?
Even weirder: The code runs fine if I ignore the error (so it's more like a warning)... But I despise leaving warnings in my code.
The voodoo solution is this:
For some reason, you must tell Unity whether this is a power of two texture or not. The following sequence of lines prevents the error.
answered Feb 03 '10 at 03:05 PM
I believe that instantiating a RenderTexture does not actually create the texture -- that happens after it is first rendered or Create() is called. Perhaps adding a call to Create() before assigning it to the material would get rid of the error.
answered Jan 28 '10 at 02:26 AM