mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Initial commit
This commit is contained in:
commit
3c7cc0c973
8391 changed files with 704313 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
# Sprite Resolver component
|
||||
|
||||
The __Sprite Resolver__ component pulls information from the [Sprite Library Asset](SLAsset.md) set in the [Sprite Library component](SLComponent.md) on the same GameObject. It automatically applies the selected Sprite to the [Sprite Renderer](https://docs.unity3d.com/Manual/class-SpriteRenderer.html). This allows you to swap the Sprite Renderer’s Sprite to other ones in the Sprite Library Asset during run time.
|
||||
|
||||
The component contains two properties - __Category__ and __Label__ - as well as a visual Variant Selector that displays thumbnails of the Sprites contained in the Sprite Library Asset.
|
||||
|
||||

|
||||
|
||||
| Property | Function |
|
||||
| ------------ | ------------------------------------------------------------ |
|
||||
| __Category__ | Select which Category you want to use a Sprite from for this GameObject. |
|
||||
| __Label__ | Select the Label of the Sprite you want to use for this GameObject. |
|
||||
|
||||
You can select the Sprite by setting to the component to its __Category__ and __Label__, or select the Sprite directly with the visual Variant Selector. When either of the Sprite Resolver’s properties change, the Sprite Resolver component checks the hierarchy for a Sprite Library component on the same GameObject. Once it finds the Sprite Library component, the Sprite Resolver requests the Sprite with the matching __Category__ and __Label__ values.
|
Loading…
Add table
Add a link
Reference in a new issue