wip : scenes transitions

This commit is contained in:
2026-07-17 18:30:24 +02:00
parent 6dd3db9a07
commit 50f65e99a7
23 changed files with 915 additions and 1171 deletions
@@ -1,4 +1,5 @@
using UnityEngine;
using UnityEngine.Video;
namespace OctoCore.Navigation.Data
{
@@ -27,6 +28,21 @@ namespace OctoCore.Navigation.Data
[Tooltip("Enable fade transition")]
public bool UseFadeTransition = true;
/// <summary>
/// Video clip played on the eyelid overlay while transitioning into this scene.
/// Optional — leave empty for a plain blink with no video.
/// </summary>
[Tooltip("Video clip played during the transition into this scene (optional)")]
public VideoClip TransitionClip;
/// <summary>
/// Material applied to the eyelid overlay's RawImage while this scene's transition
/// clip is playing (e.g. a sketch/bleed shader). Falls back to the overlay's default
/// material if left empty.
/// </summary>
[Tooltip("Material applied to the video overlay for this scene's transition (optional)")]
public Material TransitionMaterial;
#if UNITY_EDITOR
void OnValidate()
{
@@ -35,4 +51,4 @@ namespace OctoCore.Navigation.Data
}
#endif
}
}
}
@@ -1,4 +1,5 @@
using UnityEngine;
using UnityEngine.Video;
namespace OctoCore.Navigation.Data
{
@@ -29,9 +30,29 @@ namespace OctoCore.Navigation.Data
/// <summary>
/// Enable fade transition during teleport.
/// Disabled by default: teleporters already have their own stencil/mask visual
/// effect, so the eyelid blink transition is redundant unless explicitly enabled
/// for a specific teleporter that needs it.
/// </summary>
[Tooltip("Enable fade transition")]
public bool UseFadeTransition = true;
[Tooltip("Enable eyelid blink transition (usually left off, teleporters already have their own stencil effect)")]
public bool UseFadeTransition = false;
/// <summary>
/// Video clip played on the eyelid overlay while this teleport is in progress.
/// Only used if UseFadeTransition is enabled. Optional — leave empty for a plain
/// blink with no video.
/// </summary>
[Tooltip("Video clip played during this teleport, if UseFadeTransition is enabled (optional)")]
public VideoClip TransitionClip;
/// <summary>
/// Material applied to the eyelid overlay's RawImage while this teleporter's
/// transition clip is playing (e.g. a sketch/bleed shader). Only used if
/// UseFadeTransition is enabled. Falls back to the overlay's default material
/// if left empty.
/// </summary>
[Tooltip("Material applied to the video overlay for this teleport, if UseFadeTransition is enabled (optional)")]
public Material TransitionMaterial;
#if UNITY_EDITOR
void OnValidate()
@@ -41,4 +62,4 @@ namespace OctoCore.Navigation.Data
}
#endif
}
}
}