docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CampaignVariants

    CampaignVariants

    Inheritance
    object
    CampaignVariants
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Apis.Admin.RemoteConfig
    Assembly: Unity.Services.Apis.dll
    Syntax
    [DataContract(Name = "CampaignVariants")]
    [Preserve]
    public class CampaignVariants

    Constructors

    CampaignVariants(string, int, List<CampaignContentVariant>)

    Initializes a new instance of the CampaignVariants class.

    Declaration
    [Preserve]
    public CampaignVariants(string name = null, int weight = 0, List<CampaignContentVariant> content = null)
    Parameters
    Type Name Description
    string name

    name.

    int weight

    Conditionally optional. If no variants have a weight then Remote Config will treat each variant as equally distributed. However, if one variant has a weight then all variants must define a weight. If defined, the sum of all variant's weights must equal 100 .

    List<CampaignContentVariant> content

    content.

    Properties

    Content

    Gets or Sets Content

    Declaration
    [DataMember(Name = "content", EmitDefaultValue = false)]
    [Preserve]
    public List<CampaignContentVariant> Content { get; set; }
    Property Value
    Type Description
    List<CampaignContentVariant>

    Name

    Gets or Sets Name

    Declaration
    [DataMember(Name = "name", EmitDefaultValue = false)]
    [Preserve]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Weight

    Conditionally optional. If no variants have a weight then Remote Config will treat each variant as equally distributed. However, if one variant has a weight then all variants must define a weight. If defined, the sum of all variant's weights must equal 100

    Declaration
    [DataMember(Name = "weight", EmitDefaultValue = false)]
    [Preserve]
    public int Weight { get; set; }
    Property Value
    Type Description
    int

    Conditionally optional. If no variants have a weight then Remote Config will treat each variant as equally distributed. However, if one variant has a weight then all variants must define a weight. If defined, the sum of all variant's weights must equal 100

    In This Article
    Back to top
    Copyright © 2024 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)