Script Generator

After import, you can generate scripts for your frames and/or automatically serialize game objects within them.

Generating scripts from prefabs created with the Figma Converter is currently not supported - you need to generate scripts before creating the prefabs.

1

Serialization Mode

The principle by which GameObjects will be serialized into script fields. Two options are available:

  • SyncHelpers – Since scripts are generated based on SyncHelpers, this serialization method assigns all GameObjects to exactly those serialized fields for which they were generated in the code.

  • GameObjectNames – Game objects will be serialized into fields whose names match the game object names.

  • Attributes – Game objects will be serialized into fields that have the attribute "FObjectAttribute", with text that matches the name of the component in Figma for which the game object was created.

Below in the manual, you can find instructions for all serialization options or script generation.

2

Namespace

Namespace for generated scripts.

3

Base Class

Base class for generated scripts.

4

Scripts output path

Folder where generated scripts will be saved.

5

Field Name Max Length

5-7 is the maximum length for field, method, or class names.

6

Method Name Max Length

7

Class Name Max Length

8

Generate scripts

Button for generating scripts.

9

Serialize objects

Button for serializing GameObjects into scripts.

Last updated