Browse Source

Portrait Move To Front Fixed

Fixes #869
master
iwan 4 years ago
parent
commit
360a47d7c8
  1. 2
      Assets/Fungus/Scripts/Components/PortraitController.cs
  2. 1112
      Assets/Tests/Portrait_MoveToFront.unity
  3. 7
      Assets/Tests/Portrait_MoveToFront.unity.meta

2
Assets/Fungus/Scripts/Components/PortraitController.cs

@ -390,7 +390,7 @@ namespace Fungus
/// </summary>
public virtual void MoveToFront(PortraitOptions options)
{
options.character.State.portraitImage.transform.SetSiblingIndex(options.character.State.portraitImage.transform.parent.childCount);
options.character.State.portraitImage.transform.parent.SetSiblingIndex(options.character.State.portraitImage.transform.parent.parent.childCount);
options.character.State.display = DisplayType.MoveToFront;
FinishCommand(options);
}

1112
Assets/Tests/Portrait_MoveToFront.unity

File diff suppressed because it is too large Load Diff

7
Assets/Tests/Portrait_MoveToFront.unity.meta

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: eb8d83e5ae992f0418a8f7308211029e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save