docs.unity.cn
    Show / Hide Table of Contents

    Class ToggleGameObject

    Inheritance
    Object
    ToggleGameObject
    Namespace: Unity.Reflect.Actors
    Syntax
    public class ToggleGameObject

    Constructors

    ToggleGameObject(List<(DynamicGuid Id, Int32 NbEnabled)>)

    Declaration
    public ToggleGameObject(List<(DynamicGuid Id, int NbEnabled)> toggleGameObjectList)
    Parameters
    Type Name Description
    List<(T1, T2)<DynamicGuid, Int32>> toggleGameObjectList

    See ToggleGameObjectList description

    ToggleGameObject(DynamicGuid, Int32)

    Declaration
    public ToggleGameObject(DynamicGuid id, int nbEnabled)
    Parameters
    Type Name Description
    DynamicGuid id
    Int32 nbEnabled

    Fields

    ToggleGameObjectList

    A positive value of x enable the GameObject x times, a negative value of x disable the GameObject x times. The state of the GameObject toggles when the sum of all requests pass through the value 1. SetActive is called with true when the sum goes from 0 to 1, and false when the sum goes from 1 to 0.

    Declaration
    public List<(DynamicGuid Id, int NbEnabled)> ToggleGameObjectList
    Field Value
    Type Description
    List<(T1, T2)<DynamicGuid, Int32>>
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 03 February 2022
    Terms of use