- Home /
Question by
ChenMingjie · Mar 22, 2018 at 03:26 AM ·
texturescript.wrapmode
Texture3D does not contain a definition for wrapModeW
HI, I'm currently using Unity5.6.1f1 Personal.
When I use C# script to create a Texture3D and try to set its "wrapModeW" which is described in the reference page, I got this error message in console:
CS1061: Type `UnityEngine.Texture3D' does not contain a definition for `wrapModeW' and no extension method `wrapModeW' of type `UnityEngine.Texture3D' could be found. Are you missing an assembly reference?
And it seems "wrapModeU" and "wrapModeV" are missing too, only "wrapMode" is fine.
Are these properties deprecated or am I using the reference of wrong version?
Or am I spelling wrong ?
Here is my code
tex3D = new Texture3D(width, width, depth, TextureFormat.ARGB32, false);
tex3D.SetPixels(color);
tex3D.Apply();
tex3D.wrapModeU = TextureWrapMode.Clamp; // where goes wrong
Thanks very much!
Comment