# Use app data in script

To use app data in your scripts just simply add field of type MetaproAppSetup and assign scriptable object in inspector.

<figure><img src="https://lh6.googleusercontent.com/gC4lpP_FWZI1m7QPVbDjO8YvJR6V7BIGIiataBeNiEs999A4n4BliNQTkf42D4rC9LwvrRfaPT6RaGLn3OYzazvVmZ3I2G_LW5NASQ_pg5H-oMKRSq-reGJuhcVeUAToAY7AfawkHYmsmHMyWfbXFlPaSfQ6Cw2yip6nGU93gf09pyduTyCvTWNzSHLJ9A" alt=""><figcaption></figcaption></figure>

If you cannot use that type of assignment you can use another approach of searching for asset with type MetaproAppSetup and extracting from returned list needed asset.&#x20;

**WARNING:** This approach can lead to unexpected results when You have more than one scriptable object in your project. Use it carefully.

<figure><img src="https://lh5.googleusercontent.com/EKCYr04BoWnESy0gbP4lGg5nUeLw9nAlDtCVXnhoZfcRdV98KCokG-OJnKufHldC2UeTMZy9zpx-SFbGzTBgYOyS3dxr89KGWyo8W1rE7Pm61Lhj2eiLuBwHVhWqfeDv1G63n7iB4CTgrwBRGXnSSsJbKSMWLDCx09op_XH9vXfsPt314O_UMHpqgM49JQ" alt=""><figcaption></figcaption></figure>
