Component:AvatarUserRootOverrideAssigner

From Resonite Wiki
Revision as of 18:31, 7 November 2024 by 989onan (talk | contribs) (Add info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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


Component image 
AvatarUserRootOverrideAssigner component as seen in the Scene Inspector

Avatar User Root Override Assigner is a component that allows for changing the user's viewpoint, the user's first person standing location, or the user's ears location. This component works if parented under a user, for that user.

Usage

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.
Override Slot The slot to relocate the user's eyes or ears to.
Node OverrideNode Whether to make the user's eyes, Standing position, or ears located at Slot without changing any slot transforms.
_equippingSlot AvatarObjectSlot an Avatar Object Slot to use for handling this node.

OverrideNode

Values
Name Value Description
Eyes 0 Make the user's view see from Override rather than the original position it usually is at. This however prevents looking around unless the slot is driven by the user's head rotation.
Ears 1 make the the user gear from Override position and rotation (not scale) rather than from their head.
AvatarRoot 2 Visually relocates the user's head and ears position to Override this makes it seem as if they were parented to the slot but without their Avatar. This is purely visual, and does not restrict looking around.


Behavior

Needs to be parented under a user to work, and applies to the parent user. The component requires a slot, and an AvatarObjectSlot. The Avatar Object slot does not need an existing one, so best practice is to add a new Avatar Object Slot to the same Slot as this component, then put it into the _equippingSlot field. Also, adding the slot this component is on to Override allows for a self contained settup in one slot that fully works when parented to a user.

Examples

  • GearBell's purple pill. (Overrides viewpoint to pill when held)
  • 989onan's Camera Override masked Protogen (allows for switching to the viewpoints of previously equipped visors)


Related Components