docs.unity3d.com
    Show / Hide Table of Contents

    Interface ICreateFromData

    Interface for a condition that can be created from data.

    Namespace: Unity.MARS.Authoring
    Syntax
    [MovedFrom("Unity.MARS")]
    public interface ICreateFromData

    Methods

    FormatDataString(TraitDataSnapshot)

    Formats data into a string that is human-readable and appropriate for the condition

    Declaration
    string FormatDataString(TraitDataSnapshot data)
    Parameters
    Type Name Description
    TraitDataSnapshot data

    The data

    Returns
    Type Description
    String

    The formatted string

    GetConditionRatingForData(TraitDataSnapshot)

    Return the rating this condition has for the given data snapshot

    Declaration
    float GetConditionRatingForData(TraitDataSnapshot data)
    Parameters
    Type Name Description
    TraitDataSnapshot data

    The data

    Returns
    Type Description
    Single

    The result of the condition's data rate matching method

    IncludeData(TraitDataSnapshot)

    Modifies the properties so that the data is acceptable for this condition

    Declaration
    void IncludeData(TraitDataSnapshot data)
    Parameters
    Type Name Description
    TraitDataSnapshot data

    The data that should pass this condition after this method is called

    OptimizeForData(TraitDataSnapshot)

    Modifies the properties so that the data is the optimal data for this condition

    Declaration
    void OptimizeForData(TraitDataSnapshot data)
    Parameters
    Type Name Description
    TraitDataSnapshot data

    The data that should be optimal for the condition after this method is called

    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