|
If I do the following:
I get
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.
(comments are locked)
|
|
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. Thanks! This totally solved my bizarro bug.
Jun 30 '10 at 04:23 PM
rogerimp
(comments are locked)
|
|
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. Good answer but, unfortunately it has no effect
Jan 28 '10 at 07:38 PM
Kevin Laity
(comments are locked)
|
