docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDataVisual

    Interface for the component on a data visual that controls how the data visual shows ratings

    Namespace: Unity.MARS.Authoring
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public interface IDataVisual

    Methods

    ClearRating()

    Reset the visual to show no rating

    Declaration
    void ClearRating()

    ShowRating(float)

    Change the visual to show a given rating value.

    Declaration
    void ShowRating(float rating)
    Parameters
    Type Name Description
    float rating

    This data's rating value from 0 to 1

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)