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