# Gift settings

<figure><img src="https://2833866240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjXBqDJjxO8HgWsUBESnx%2Fuploads%2Ffa3WvptHZkoaCWjOgSFQ%2Fimage.png?alt=media&#x26;token=457adc7a-b463-4f67-acb3-53d362606d67" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2833866240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjXBqDJjxO8HgWsUBESnx%2Fuploads%2FBfm2py12MyL05W7qnayq%2Fimage.png?alt=media&#x26;token=78a00ec3-6ccd-469c-86e2-01a806b27228" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2833866240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjXBqDJjxO8HgWsUBESnx%2Fuploads%2FPDHO6fmvQb2SpIRubUvV%2Fimage.png?alt=media&#x26;token=24e11732-9e92-481a-a07e-16dc8c3cb00a" alt=""><figcaption></figcaption></figure>

The GiftSettings script defines a configurable set of potential gifts that a player can receive, such as coins, tips, or power-ups.&#x20;

1. Gift Prefab

   Reference to the visual and interactive GameObject that represents the gift (must inherit from GiftBase).
2. Gift Count

   The quantity of the resource given when this gift is awarded.
3. Gift Chance

   The probability weight of this gift being selected during random gift generation (range 0.0 to 100).
4. Resource Object

   The logical resource this gift provides (e.g., coins, power-ups, etc.), represented as a ResourceObject.
5. Tag UI Element

   A string identifier used to tag this gift for linking it to a specific UI element in the scene (e.g., buttons, indicators).
