Skip to main content

Scripting Resources

Overview​

The Scripting Resourse components allow you to attach resources to an object without having the full Scripting Runtime.

The Scripting Resourse components allow you to attach resources to an object without having the full Scripting Runtime. This can be useful when objects are created dynamically at runtime or meant to be interchangeable. Together with the Scripting Resources and Scripting Events components, you can effectively emulate the ability to create custom Unity components on an object with unique behaviors, properties, and resources attached to them.

Fields​

Component Name​

The component name

Resources​

The number of event elements

Element Name​

The name of the element that can be used to call the element via code.

Element Object​

The resource itself

Usage​

Drag a resource object into the Object field