Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AssetPart Struct

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    A part asset contained by an asset that is IAssetComposite.

    [DataContract("AssetPart")]
    [Obsolete("This struct might be removed soon")]
    public struct AssetPart : IEquatable<AssetPart>
    Name Description
    Constructors
    AssetPart(Guid, BasePart, Action<BasePart>)
    Fields
    Base

    Base asset identifier.

    PartId

    Asset identifier.

    Methods
    Equals(AssetPart)
    Equals(Object)
    GetHashCode()
    UpdateBase(BasePart)
    Operators
    Equality(AssetPart, AssetPart)
    Inequality(AssetPart, AssetPart)
    | Improve this Doc View Source

    Constructors


    AssetPart(Guid, BasePart, Action<BasePart>)

    public AssetPart(Guid partId, BasePart basePart, Action<BasePart> baseUpdater)
    Parameters
    Type Name Description
    System.Guid partId
    BasePart basePart
    System.Action<BasePart> baseUpdater
    | Improve this Doc View Source

    Fields


    Base

    Base asset identifier.

    public readonly BasePart Base
    Field Value
    Type Description
    BasePart

    PartId

    Asset identifier.

    public readonly Guid PartId
    Field Value
    Type Description
    System.Guid
    | Improve this Doc View Source

    Methods


    Equals(AssetPart)

    public bool Equals(AssetPart other)
    Parameters
    Type Name Description
    AssetPart other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    UpdateBase(BasePart)

    public void UpdateBase(BasePart newBase)
    Parameters
    Type Name Description
    BasePart newBase
    | Improve this Doc View Source

    Operators


    Equality(AssetPart, AssetPart)

    public static bool operator ==(AssetPart left, AssetPart right)
    Parameters
    Type Name Description
    AssetPart left
    AssetPart right
    Returns
    Type Description
    System.Boolean

    Inequality(AssetPart, AssetPart)

    public static bool operator !=(AssetPart left, AssetPart right)
    Parameters
    Type Name Description
    AssetPart left
    AssetPart right
    Returns
    Type Description
    System.Boolean

    Inherited Members

    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation