Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ModelImporter.CreateDefaultMaskForClip

public void CreateDefaultMaskForClip(ModelImporterClipAnimation clip);

Parameters

clip Clip to which the mask will be applied.

Description

Creates a mask that matches the model hierarchy, and applies it to the provided ModelImporterClipAnimation.

When writing an AssetPostprocessor, use this method with your created clips to apply a mask that matches the transform hierarchy in the ModelImporter.