Support separate displacement maps for left and right hand (#35820)
* Update HandsSystem.cs * Update HandsComponent.cs
This commit is contained in:
@@ -78,9 +78,24 @@ public sealed partial class HandsComponent : Component
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public TimeSpan ThrowCooldown = TimeSpan.FromSeconds(0.5f);
|
||||
|
||||
/// <summary>
|
||||
/// Fallback displacement map applied to all sprites in the hand, unless otherwise specified
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public DisplacementData? HandDisplacement;
|
||||
|
||||
/// <summary>
|
||||
/// If defined, applies to all sprites in the left hand, ignoring <see cref="HandDisplacement"/>
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public DisplacementData? LeftHandDisplacement;
|
||||
|
||||
/// <summary>
|
||||
/// If defined, applies to all sprites in the right hand, ignoring <see cref="HandDisplacement"/>
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public DisplacementData? RightHandDisplacement;
|
||||
|
||||
/// <summary>
|
||||
/// If false, hands cannot be stripped, and they do not show up in the stripping menu.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user