How to customize Importer/Deleter

[Last updated: 01/30/2020]

This page describes the procedure for customizing the Importer/Deleter.
The following assumes that the SDK will be added to a project that has already been imported.

 

 

Summary

Importer/Deleter is a function that is called back when an asset with a specified extension is imported or deleted.

To create and customize your own Importer/Deleter, follow these steps.

  1. Create Importer/Deleter scripts that inherit from CubismImporterBase/CubismDeleterBase
  2. Register Importer/Deleter target extensions
  3. Create Import()/Delete() to be called back when imported or deleted

 

1. Create Importer/Deleter scripts that inherit from CubismImporterBase/CubismDeleterBase

Create an ImporterCustomization script.

* The script is a Unity Editor extension and must be created under the Editor folder.

 

2. Register Importer/Deleter target extensions

Register the extensions of the assets to be processed by the Importer.

Register the extension of the asset to be Deleter processed.

 

 

3. Create Import()/Delete() to be called back when imported or deleted

Create an Import() that will be called back when the target assets for Importer processing are imported.

 

Create a Delete() that will be called back when the target asset for Deleter processing is deleted.

© 2010 - 2022 Live2D Inc.