Home > other >  Unity3d function call
Unity3d function call

Time:09-18

I am using Unity3D UFPS package, this function is an error... How to do?

CodePudding user response:

New Texture () from time to tome Texture. The Texture "()" is inaccessible, because it has a certain protective function

CodePudding user response:

reference 1st floor qq_18245823 response:
new Texture () there is "Texture. The Texture ()" is inaccessible, because it has a certain protective function


Look at the official documentation
https://docs.unity3d.com/ScriptReference/Texture.html

This class is that there is no public constructors, so it is not support the new Texture of this form to create, Texture2D was this class can be, but it is only support specifies the width of high, and does not support the no-arg constructor,
https://docs.unity3d.com/ScriptReference/Texture2D.html
https://docs.unity3d.com/ScriptReference/Texture2D-ctor.html
  • Related