Serialization by Attributes
1
If you have your own scripts, you can skip the generation step.
2
Add the attribute [FObject("frame_name")] to your class, where frame_name is the name of the frame in Figma to which this script belongs.

3
Add the attribute [FObject("component_name")] to your serialized fields, where component_name is the name of the component in Figma, whose game object should be serialized into this field.

4
Click the "Serialize Objects" button.
5
Game objects will be serialized into your fields according to your settings.

Last updated