texture
This is a Texture2D generated by TextureGenerator.GenerateTexture based on the colorBuffer argument passed to that function. If the generator is configured to generate a non-2D texture (cubemap, 3D,...), this member will always be null. To get the result for an arbitrary texture type, please use the TextureGenerationOutput.output property. We recommend always using TextureGenerationOutput.output as the texture property will deprecated/removed in the future.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEditor.AssetImporters
- Assembly: UnityEditor.CoreModule
public Texture2D texture { get; }