Class SerializedComponent | Asset Graph | 1.6.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class SerializedComponent

    Inheritance
    Object
    SerializedComponent
    Namespace: UnityEngine.AssetGraph
    Syntax
    [Serializable]
    public class SerializedComponent

    Constructors

    SerializedComponent(String)

    Declaration
    public SerializedComponent(string gameObjectName = null)
    Parameters
    Type Name Description
    String gameObjectName

    SerializedComponent(SerializedComponent)

    Declaration
    public SerializedComponent(SerializedComponent c)
    Parameters
    Type Name Description
    SerializedComponent c

    Properties

    Components

    Declaration
    public List<SerializedComponent.ComponentInfo> Components { get; }
    Property Value
    Type Description
    List<SerializedComponent.ComponentInfo>

    Data

    Declaration
    public string Data { get; }
    Property Value
    Type Description
    String

    InternalGameObject

    Declaration
    public GameObject InternalGameObject { get; }
    Property Value
    Type Description
    GameObject

    InternalGameObjectEditor

    Declaration
    public Editor InternalGameObjectEditor { get; }
    Property Value
    Type Description
    Editor

    IsInvalidated

    Declaration
    public bool IsInvalidated { get; }
    Property Value
    Type Description
    Boolean

    Methods

    AddComponent(Type)

    Declaration
    public Component AddComponent(Type t)
    Parameters
    Type Name Description
    Type t
    Returns
    Type Description
    UnityEngine.Component

    AddComponent<T>()

    Declaration
    public T AddComponent<T>()
        where T : Component
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Clone()

    Declaration
    public SerializedComponent Clone()
    Returns
    Type Description
    SerializedComponent

    Equals(Object)

    Declaration
    public override bool Equals(object rhs)
    Parameters
    Type Name Description
    Object rhs
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    GetComponent(Type)

    Declaration
    public Component GetComponent(Type t)
    Parameters
    Type Name Description
    Type t
    Returns
    Type Description
    UnityEngine.Component

    GetComponent<T>()

    Declaration
    public T GetComponent<T>()
        where T : Component
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    Invalidate()

    Declaration
    public void Invalidate()

    OnInspectorGUI()

    Declaration
    public void OnInspectorGUI()

    RemoveComponent(SerializedComponent.ComponentInfo)

    Declaration
    public void RemoveComponent(SerializedComponent.ComponentInfo info)
    Parameters
    Type Name Description
    SerializedComponent.ComponentInfo info

    Restore()

    Declaration
    public void Restore()

    Save()

    Declaration
    public void Save()

    SyncAttachedComponents()

    Declaration
    public void SyncAttachedComponents()

    Operators

    Equality(SerializedComponent, SerializedComponent)

    Declaration
    public static bool operator ==(SerializedComponent lhs, SerializedComponent rhs)
    Parameters
    Type Name Description
    SerializedComponent lhs
    SerializedComponent rhs
    Returns
    Type Description
    Boolean

    Inequality(SerializedComponent, SerializedComponent)

    Declaration
    public static bool operator !=(SerializedComponent lhs, SerializedComponent rhs)
    Parameters
    Type Name Description
    SerializedComponent lhs
    SerializedComponent rhs
    Returns
    Type Description
    Boolean
    Back to top
    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