Version: 2017.3 (switch to 2017.4)
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.

Did you find this page useful? Please give it a rating: