Class Attachment
Namespace: ValveResourceFormat.ResourceTypes.ModelData.Attachments
Assembly: ValveResourceFormat.dll
Represents an attachment point on a model with associated influences.
csharp
public class Attachment : IEnumerable<Attachment.Influence>, IEnumerableInheritance
Implements
IEnumerable<Attachment.Influence>, IEnumerable
Constructors
Attachment(KVObject)
Initializes a new instance of the class from data.
csharp
public Attachment(KVObject attachmentData)Parameters
attachmentData KVObject
The containing attachment information.
Properties
IgnoreRotation
Gets a value indicating whether rotation should be ignored for this attachment.
csharp
public bool IgnoreRotation { get; init; }Property Value
Length
Gets the number of influences in this attachment.
csharp
public int Length { get; }Property Value
Name
Gets the name of the attachment.
csharp
public string Name { get; init; }Property Value
this[int]
Gets the influence at the specified index.
csharp
public Attachment.Influence this[int i] { get; }Property Value
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
csharp
public IEnumerator<Attachment.Influence> GetEnumerator()Returns
IEnumerator<Attachment.Influence>
An enumerator that can be used to iterate through the collection.

