Skip to content

Commit 7e16a92

Browse files
committed
Modal, Page, Sheet の SerializeField の値をスクリプトからも設定できるように
1 parent 4da5a88 commit 7e16a92

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Assets/UnityScreenNavigator/Runtime/Core/Modal/Modal.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ private Progress<float> TransitionProgressReporter
3939

4040
private readonly CompositeLifecycleEvent<IModalLifecycleEvent> _lifecycleEvents = new();
4141

42+
public bool UsePrefabNameAsIdentifier
43+
{
44+
get => _usePrefabNameAsIdentifier;
45+
set => _usePrefabNameAsIdentifier = value;
46+
}
47+
4248
public string Identifier
4349
{
4450
get => _identifier;

Assets/UnityScreenNavigator/Runtime/Core/Page/Page.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,24 @@ private Progress<float> TransitionProgressReporter
4040

4141
private readonly CompositeLifecycleEvent<IPageLifecycleEvent> _lifecycleEvents = new();
4242

43+
public bool UsePrefabNameAsIdentifier
44+
{
45+
get => _usePrefabNameAsIdentifier;
46+
set => _usePrefabNameAsIdentifier = value;
47+
}
48+
4349
public string Identifier
4450
{
4551
get => _identifier;
4652
set => _identifier = value;
4753
}
4854

55+
public int RenderingOrder
56+
{
57+
get => _renderingOrder;
58+
set => _renderingOrder = value;
59+
}
60+
4961
public PageTransitionAnimationContainer AnimationContainer => _animationContainer;
5062

5163
public bool IsTransitioning { get; private set; }

Assets/UnityScreenNavigator/Runtime/Core/Sheet/Sheet.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ public string Identifier
4444
set => _identifier = value;
4545
}
4646

47+
public int RenderingOrder
48+
{
49+
get => _renderingOrder;
50+
set => _renderingOrder = value;
51+
}
52+
4753
public SheetTransitionAnimationContainer AnimationContainer => _animationContainer;
4854

4955
public bool IsTransitioning { get; private set; }

0 commit comments

Comments
 (0)