Component:AvatarBadgeManager: Difference between revisions

From Resonite Wiki
m Replace "intoduction"
add info
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:


<!--T:2-->
<!--T:2-->
The AvatarBadgeManager initializes the user's badges under the Badges Root slot.
The '''AvatarBadgeManager''' component initializes the [[User|user's]] [[Badges|badges]] under the <code>Badges Root</code> slot.


<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|BadgeSize|Float|
|BadgeSize|Float| The size of the generated badges in local space.
|BadgeSeparation|Float|
|BadgeSeparation|Float| The separation in meters between the badges in local space
|MaxRowSize|Int|
|MaxRowSize|Int| The maximum amount of badges on one row before moving to the next.
|_badgesRoot|Slot|
|_badgesRoot|Slot| The slot to put the badges under.
|_badgesOffset|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv4=true|
|_badgesOffset|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv4=true| The position of the <code>_badgesRoot</code> slot, which is used to move the badges away from the user's name tag and keep them positioned properly.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This is used to help with organizing badges on a user's [[Nameplate]], including custom badges. The [[User Badge Manager|user badge manager]] does this internally to help assign badges accordingly.


<!--T:5-->
<!--T:5-->
Line 31: Line 31:
</translate>
</translate>
[[Category:Components{{#translation:}}|Avatar Badge Manager]]
[[Category:Components{{#translation:}}|Avatar Badge Manager]]
[[Category:ComponentStubs]]
[[Category:Components:Users:Common Avatar System:Nameplate{{#translation:}}|Avatar Badge Manager]]
[[Category:Components:Users:Common Avatar System:Nameplate{{#translation:}}|Avatar Badge Manager]]

Latest revision as of 22:47, 24 October 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
AvatarBadgeManager component as seen in the Scene Inspector


The AvatarBadgeManager component initializes the user's badges under the Badges Root slot.

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
BadgeSize Float The size of the generated badges in local space.
BadgeSeparation Float The separation in meters between the badges in local space
MaxRowSize Int The maximum amount of badges on one row before moving to the next.
_badgesRoot Slot The slot to put the badges under.
_badgesOffset field drive of Float3 The position of the _badgesRoot slot, which is used to move the badges away from the user's name tag and keep them positioned properly.

Usage

This is used to help with organizing badges on a user's Nameplate, including custom badges. The user badge manager does this internally to help assign badges accordingly.

Examples

Related Components