We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssetsTools.NET.Texture/TextureFile.cs - SetTextureDataRaw( ... ) This function code:
public void SetTextureDataRaw(byte[] encodedData, int width, int height) { ... m_StreamData.path = null; ... }
And in WriteTo(AssetTypeValueField baseField) end:
AssetTypeValueField streamData; if (!(streamData = baseField["m_StreamData"]).IsDummy) { ... streamData["path"].AsString = m_StreamData.path; }
m_StreamData.path is null , AsString code is set => Value = Encoding.UTF8.GetBytes(value); will throw a Exception.
set => Value = Encoding.UTF8.GetBytes(value);
My full codes:
tf.SetTextureDataRaw(bytes, width, height); tf.m_TextureFormat = (int)TextureFormat.ETC_RGB4; tf.m_MipMap = false; tf.m_MipCount = 1; tf.WriteTo(baseField); // Error!
So... AsString was modified to ?
Value = value == null ? new byte[0] : Encoding.UTF8.GetBytes(value);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
AssetsTools.NET.Texture/TextureFile.cs - SetTextureDataRaw( ... )
This function code:
And in WriteTo(AssetTypeValueField baseField) end:
m_StreamData.path is null , AsString code is
set => Value = Encoding.UTF8.GetBytes(value);
will throw a Exception.My full codes:
So... AsString was modified to ?
The text was updated successfully, but these errors were encountered: