docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CreateScriptRequest

    CreateScriptRequest

    Inheritance
    object
    CreateScriptRequest
    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 = "CreateScriptRequest")]
    [Preserve]
    public class CreateScriptRequest

    Constructors

    CreateScriptRequest(string, ScriptType, List<ScriptParameter>, string, Language?)

    Initializes a new instance of the CreateScriptRequest class.

    Declaration
    [Preserve]
    public CreateScriptRequest(string name = null, ScriptType type = (ScriptType)0, List<ScriptParameter> _params = null, string code = null, Language? language = null)
    Parameters
    Type Name Description
    string name

    Name of the script. Serves as a unique identifier. (required).

    ScriptType type

    type (required).

    List<ScriptParameter> _params

    The list of parameters which can be defined for a script..

    string code

    The script code to be executed.

    Language? language

    language.

    Properties

    Code

    The script code to be executed

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

    The script code to be executed

    Language

    Gets or Sets Language

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

    Name

    Name of the script. Serves as a unique identifier.

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

    Name of the script. Serves as a unique identifier.

    Params

    The list of parameters which can be defined for a script.

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

    The list of parameters which can be defined for a script.

    Type

    Gets or Sets Type

    Declaration
    [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public ScriptType Type { get; set; }
    Property Value
    Type Description
    ScriptType
    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)