docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SimpleImageArtifact

    Artifact that represents a simple image (the image doesn't support any operators).

    Inheritance
    object
    Artifact
    Artifact<Texture2D>
    SimpleImageArtifact
    Implements
    IEquatable<Artifact>
    Inherited Members
    Artifact<Texture2D>.GetArtifactData()
    Artifact<Texture2D>.SetArtifactData(ArtifactData)
    Artifact<Texture2D>.IsCached
    Artifact<Texture2D>.GetArtifact(Artifact<Texture2D>.ArtifactCreationDelegate, bool)
    Artifact.k_InvalidGUID
    Artifact.Guid
    Artifact.Seed
    Artifact.m_Operators
    Artifact.history
    Artifact.StartGenerate(Model)
    Artifact.CreateCanvasView()
    Artifact.OnGenerationDone
    Artifact.GetOperators()
    Artifact.UnregisterFromEvents(Model)
    Artifact.RegisterToEvents(Model)
    Artifact.Equals(Artifact)
    Artifact.Equals(object)
    Artifact.GetHashCode()
    Artifact.SetOperators(IEnumerable<IOperator>)
    Artifact.CloneOperators(IEnumerable<IOperator>)
    Artifact.Clone(string)
    Artifact.Variate(List<IOperator>)
    Artifact.Shape(List<IOperator>)
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Muse.Common
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class SimpleImageArtifact : Artifact<Texture2D>, IEquatable<Artifact>

    Constructors

    Name Description
    SimpleImageArtifact(string, uint)

    Properties

    Name Description
    FileExtension

    Methods

    Name Description
    ConstructFromData(byte[])
    CreateFromData(byte[], bool)

    Takes binary data and will attempt to deserialize it into its concrete Unity representation. Concrete implementations will throw exceptions or handle malformed incoming data

    CreateView()
    Generate(Model)
    GetPreview(ArtifactPreviewDelegate, bool)
    ReadFromCache(out byte[])

    Will return the deserialized Unity representation of the cached artifact from the local machine.

    ReadFromCacheRaw()
    RetryGenerate(Model)
    WriteToCache(byte[])

    Writes the serialized Unity representation of this artifact to the GeneratedArtifactCache on the local machine.

    Extension Methods

    ArtifactExtension.GetOperator<T>(Artifact)
    ArtifactExtensions.IsValid(Artifact)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023