docs.unity3d.com
    Show / Hide Table of Contents

    Class TrophySystem.Icon

    Contains raw PNG icon data

    Inheritance
    Object
    TrophySystem.Icon
    Namespace: Unity.PSN.PS5.Trophies
    Syntax
    public class Icon

    Properties

    HasTexture2D

    Has a Texture2D already been created for this icon

    Declaration
    public bool HasTexture2D { get; }
    Property Value
    Type Description
    Boolean

    Image

    Return or create Texture2D from PNG data.

    Declaration
    public Texture2D Image { get; }
    Property Value
    Type Description
    Texture2D
    Remarks

    This will create a new Texture2D is one isn't already created. If a texture hasn't been created then this should only be called from the main Unity thread. Use HasTexture2D to test if a texture has already been created

    RawImage

    Return the raw PNG bytes for the icon

    Declaration
    public byte[] RawImage { get; }
    Property Value
    Type Description
    Byte[]
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 25 September 2020