docs.unity3d.com
    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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023