+ Add : Plugin fbx integration
This commit is contained in:
@@ -206,6 +206,18 @@ namespace Unheimlich.Features.Dialogue.UI
|
||||
_shakeOffset = Vector3.zero;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Syncs the ghost word's sibling index so depth sorting covers both the main word and its ghost trail.
|
||||
/// Should be called right after SetSiblingIndex on the main word.
|
||||
/// </summary>
|
||||
public void SyncGhostSiblingIndex(int mainSiblingIndex)
|
||||
{
|
||||
if (_ghostTextComponent == null) return;
|
||||
// Place ghost just before its main word so it renders underneath it.
|
||||
int ghostIndex = Mathf.Max(0, mainSiblingIndex - 1);
|
||||
_ghostTextComponent.transform.SetSiblingIndex(ghostIndex);
|
||||
}
|
||||
|
||||
public void SetShakeSpeedMultiplier(float multiplier)
|
||||
{
|
||||
_shakeSpeedMultiplier = Mathf.Max(0f, multiplier);
|
||||
|
||||
Reference in New Issue
Block a user