Help with components

Hello everyone. I’m trying to write and understand prototypes and components. the question arose: how to understand what values a component takes or how to correctly register it in a prototype? I tried to look at the comments in the components, but apart from the main function of the component, nothing is written there.

1 Like

You may use the [DataField] attribute on a variable to allow it to be defined in the prototype/component. For example, the attribute

public bool TestExample;

will be able to be defined in YML as:

testExample: true