Table of Contents

Struct AssetPart

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>
Implements
Inherited Members

Constructors

AssetPart(Guid, BasePart, Action<BasePart>)

public AssetPart(Guid partId, BasePart basePart, Action<BasePart> baseUpdater)

Parameters

partId Guid
basePart BasePart
baseUpdater Action<BasePart>

Fields

Base

Base asset identifier.

public readonly BasePart Base

Field Value

BasePart

PartId

Asset identifier.

public readonly Guid PartId

Field Value

Guid

Methods

Equals(AssetPart)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(AssetPart other)

Parameters

other AssetPart

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

UpdateBase(BasePart)

public void UpdateBase(BasePart newBase)

Parameters

newBase BasePart

Operators

operator ==(AssetPart, AssetPart)

public static bool operator ==(AssetPart left, AssetPart right)

Parameters

left AssetPart
right AssetPart

Returns

bool

operator !=(AssetPart, AssetPart)

public static bool operator !=(AssetPart left, AssetPart right)

Parameters

left AssetPart
right AssetPart

Returns

bool