Table of Contents

Class LoadedGLTFastAv

A loaded glTFast glTF avatar.

public class LoadedGLTFastAv : LoadedAv, IMeshBlendShapeProvider, IBlendShapeProvider, ICapability
Inheritance
object
LoadedGLTFastAv
Implements
Inherited Members
Extension Methods

Constructors

LoadedGLTFastAv(GameObject, GltfImport, AvMetadata, Texture2D?, Texture2D?, Type)

public LoadedGLTFastAv(GameObject gameObject, GltfImport import, AvMetadata metadata, Texture2D? fullRender, Texture2D? bustRender, Type importerType)

Parameters

gameObject GameObject
import GltfImport
metadata AvMetadata
fullRender Texture2D?
bustRender Texture2D?
importerType Type

Fields

Import

The glTFast import associated with the avatar.

public readonly GltfImport Import

Field Value

GltfImport

Properties

ChannelNames

Case-sensitive keys for all available blend weights.

public IReadOnlyCollection<string> ChannelNames { get; }

Property Value

IReadOnlyCollection<string>

HasWeights

Does this avatar have any blendshape weights?

public bool HasWeights { get; }

Property Value

bool

Methods

GetWeight(string)

Gets the weight for the given name.

public float GetWeight(string name)

Parameters

name string

Returns

float

Remarks

If multiple blend shape sources in the avatar have the same channel name, this gets the maximum weight.

HasWeight(string)

Checks if a weight channel with the given name exists.

public bool HasWeight(string name)

Parameters

name string

Returns

bool

ImporterSpecificDispose()

protected override void ImporterSpecificDispose()

SetWeight(string, float)

Sets the weight for the given name.

public void SetWeight(string name, float weight)

Parameters

name string
weight float

Remarks

If multiple blend shape sources in the avatar have the same channel name, this sets the weight for all of them.

TryGetAvatarMaterials()

Tries to get all materials of the avatar.

public override IReadOnlyList<Material>? TryGetAvatarMaterials()

Returns

IReadOnlyList<Material>

TryGetAvatarMeshes()

Tries to get all meshes of the avatar.

public override IReadOnlyList<Mesh>? TryGetAvatarMeshes()

Returns

IReadOnlyList<Mesh>