docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ScriptParameter

    Defines a parameter for a script.

    Inheritance
    object
    ScriptParameter
    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.CloudCode
    Assembly: Unity.Services.Apis.dll
    Syntax
    [DataContract(Name = "ScriptParameter")]
    [Preserve]
    public class ScriptParameter

    Constructors

    ScriptParameter(string, TypeEnum?, bool)

    Initializes a new instance of the ScriptParameter class.

    Declaration
    [Preserve]
    public ScriptParameter(string name = null, ScriptParameter.TypeEnum? type = TypeEnum.ANY, bool required = false)
    Parameters
    Type Name Description
    string name

    Name of the script parameter. (required).

    ScriptParameter.TypeEnum? type

    The type of the parameter. (default to TypeEnum.ANY).

    bool required

    A flag indicating if the parameter is required when running a Script..

    Properties

    Name

    Name of the script parameter.

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

    Name of the script parameter.

    Required

    A flag indicating if the parameter is required when running a Script.

    Declaration
    [DataMember(Name = "required", EmitDefaultValue = true)]
    [Preserve]
    public bool Required { get; set; }
    Property Value
    Type Description
    bool

    A flag indicating if the parameter is required when running a Script.

    Type

    The type of the parameter.

    Declaration
    [DataMember(Name = "type", EmitDefaultValue = false)]
    [Preserve]
    public ScriptParameter.TypeEnum? Type { get; set; }
    Property Value
    Type Description
    ScriptParameter.TypeEnum?

    The type of the parameter.

    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)