Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add disable fill rect when exit #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Assets/UnityScreenNavigator/Runtime/Core/Screen/Screen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace UnityScreenNavigator.Runtime.Core.Screen
[DisallowMultipleComponent]
public class Screen : Window, IScreenLifecycleEvent
{
[SerializeField] protected bool _isFillRectWhenExit = true;
[SerializeField] private bool _usePrefabNameAsIdentifier = true;

[SerializeField] [EnabledIf(nameof(_usePrefabNameAsIdentifier), false)]
Expand Down Expand Up @@ -210,7 +211,10 @@ internal UniTask BeforeExit(bool push, Screen partnerScreen)
private UniTask BeforeExitTask(bool push, Screen partnerScreen)
{
gameObject.SetActive(true);
RectTransform.FillParent((RectTransform)Parent);

if (_isFillRectWhenExit)
RectTransform.FillParent((RectTransform)Parent);

if (!UnityScreenNavigatorSettings.Instance.EnableInteractionInTransition)
{
Interactable = false;
Expand Down
2 changes: 1 addition & 1 deletion Assets/UnityScreenNavigator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.felixngd.unityuimanager",
"displayName": "Unity UI Manager",
"version": "1.2.23",
"version": "1.2.24",
"unity": "2020.3",
"license": "MIT",
"dependencies": {
Expand Down