+ Add : Plugin fbx integration

This commit is contained in:
Ferlat Thibaud
2026-03-24 20:11:39 +01:00
parent a16a9b1837
commit b1c1b31354
169 changed files with 18357 additions and 1242 deletions
@@ -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);