add CRIWARE support.
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2015 CRI Middleware Co., Ltd.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace CriWare {
|
||||
|
||||
[CustomEditor(typeof(CriManaMovieController))]
|
||||
public class CriManaMovieControllerEditor : UnityEditor.Editor
|
||||
{
|
||||
private CriManaMovieController source = null;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
source = (CriManaMovieController)base.target;
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
if (this.source == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Undo.RecordObject(target, null);
|
||||
|
||||
GUI.changed = false;
|
||||
{
|
||||
EditorGUILayout.PrefixLabel("Startup Parameters");
|
||||
++EditorGUI.indentLevel;
|
||||
{
|
||||
|
||||
EditorGUI.BeginChangeCheck();
|
||||
string moviePath = EditorGUILayout.TextField(new GUIContent("Movie Path", "The path to the movie file."), source.moviePath);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.moviePath = moviePath;
|
||||
}
|
||||
source.playOnStart = EditorGUILayout.Toggle(new GUIContent("Play On Start", "Immediatly play movie after Start of the component."), source.playOnStart);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool loop = EditorGUILayout.Toggle(new GUIContent("Loop", "Movie is played in continuous loop."), source.loop);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.loop = loop;
|
||||
}
|
||||
source.restartOnEnable = EditorGUILayout.Toggle(new GUIContent("Restart On Enable", "Restart playback after disabling and then enabling the component."), source.restartOnEnable);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool advancedAudioMode = EditorGUILayout.BeginToggleGroup(new GUIContent("Advanced Audio Mode", "Enable advanced audio mode."), source.advancedAudio);
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
source.advancedAudio = advancedAudioMode;
|
||||
}
|
||||
if (source.advancedAudio)
|
||||
{
|
||||
EditorGUI.indentLevel += 2;
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool useAmbisonics = EditorGUILayout.Toggle(new GUIContent("Ambisonics", "Use Ambisonics."), source.ambisonics);
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
source.ambisonics = useAmbisonics;
|
||||
}
|
||||
EditorGUI.indentLevel -= 2;
|
||||
}
|
||||
EditorGUILayout.EndToggleGroup();
|
||||
}
|
||||
--EditorGUI.indentLevel;
|
||||
EditorGUILayout.PrefixLabel("Render Parameters");
|
||||
++EditorGUI.indentLevel;
|
||||
{
|
||||
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool additiveMode = EditorGUILayout.Toggle(new GUIContent("Additive Mode", "Movie is rendered in additive blend mode."), source.additiveMode);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.additiveMode = additiveMode;
|
||||
}
|
||||
source.material = (Material)EditorGUILayout.ObjectField(new GUIContent("Material",
|
||||
"The material to render movie.\n" +
|
||||
"If 'none' use an internal default material."), source.material, typeof(Material), true);
|
||||
source.renderMode = (CriManaMovieMaterialBase.RenderMode)EditorGUILayout.EnumPopup(new GUIContent("Render Mode",
|
||||
"- Always: Render movie at each frame.\n" +
|
||||
"- OnVisibility: Render movie only when owner GameObject or Renderer Target is visible.\nOptimization when movie is not visible on screen.\n" +
|
||||
"- Never: Never render movie to the material. You need to call 'RenderMovie()' to control rendering."), source.renderMode);
|
||||
source.maxFrameDrop = (CriManaMovieMaterialBase.MaxFrameDrop)EditorGUILayout.EnumPopup(new GUIContent("Max Frame Drop",
|
||||
"- Disable: Disable frame dropping.\n" +
|
||||
"- One~Ten: Drops one or more maximum frames before each rendering if not in-sync.\n" +
|
||||
"- Infinite: Drops all frames until playback is in-sync.\n" +
|
||||
"Default is 'Two'."), source.maxFrameDrop);
|
||||
|
||||
EditorGUILayout.PrefixLabel("Renderer Control");
|
||||
++EditorGUI.indentLevel;
|
||||
{
|
||||
source.target = (Renderer)EditorGUILayout.ObjectField(new GUIContent("Target", "Renderer object target to override its material with movie material.\nIf 'none', use owner GameObject Renderer if present."), source.target, typeof(Renderer), true);
|
||||
source.useOriginalMaterial = EditorGUILayout.Toggle(new GUIContent("Use Original Material", "If set to 'true', use the original Renderer Target material when movie is stopped."), source.useOriginalMaterial);
|
||||
}
|
||||
--EditorGUI.indentLevel;
|
||||
}
|
||||
--EditorGUI.indentLevel;
|
||||
}
|
||||
if (GUI.changed) {
|
||||
EditorUtility.SetDirty(this.source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} //namespace CriWare
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90f75aa41c1f34217898c275711b3e73
|
||||
timeCreated: 1445241046
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,91 @@
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2015 CRI Middleware Co., Ltd.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace CriWare {
|
||||
|
||||
[CustomEditor(typeof(CriManaMovieControllerForUI))]
|
||||
public class CriManaMovieControllerForUIEditor : UnityEditor.Editor
|
||||
{
|
||||
private CriManaMovieControllerForUI source = null;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
source = (CriManaMovieControllerForUI)base.target;
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
if (this.source == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Undo.RecordObject(target, null);
|
||||
|
||||
GUI.changed = false;
|
||||
{
|
||||
EditorGUILayout.PrefixLabel("Startup Parameters");
|
||||
++EditorGUI.indentLevel;
|
||||
{
|
||||
EditorGUI.BeginChangeCheck();
|
||||
string moviePath = EditorGUILayout.TextField(new GUIContent("Movie Path", "The path to the movie file."), source.moviePath);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.moviePath = moviePath;
|
||||
}
|
||||
source.playOnStart = EditorGUILayout.Toggle(new GUIContent("Play On Start", "Immediatly play movie after Start of the component."), source.playOnStart);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool loop = EditorGUILayout.Toggle(new GUIContent("Loop", "Movie is played in continuous loop."), source.loop);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.loop = loop;
|
||||
}
|
||||
source.restartOnEnable = EditorGUILayout.Toggle(new GUIContent("Restart On Enable", "Restart playback after disabling and then enabling the component."), source.restartOnEnable);
|
||||
}
|
||||
--EditorGUI.indentLevel;
|
||||
++EditorGUI.indentLevel;
|
||||
{
|
||||
EditorGUILayout.PrefixLabel("Render Parameters");
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool additiveMode = EditorGUILayout.Toggle(new GUIContent("Additive Mode", "Movie is rendered in additive blend mode."), source.additiveMode);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.additiveMode = additiveMode;
|
||||
}
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool applyTargetAlpha = EditorGUILayout.Toggle(new GUIContent("Apply Target Alpha", "Movie is rendered with Alpha color of the attached object."), source.applyTargetAlpha);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.applyTargetAlpha = applyTargetAlpha;
|
||||
}
|
||||
source.material = (Material)EditorGUILayout.ObjectField(new GUIContent("Material",
|
||||
"The material to render movie.\n" +
|
||||
"If 'none' use an internal default material."), source.material, typeof(Material), true);
|
||||
source.renderMode = (CriManaMovieMaterialBase.RenderMode)EditorGUILayout.EnumPopup(new GUIContent("Render Mode",
|
||||
"- Always: Render movie at each frame.\n" +
|
||||
"- OnVisibility: Render movie only when owner GameObject is visible or UI.Graphic Target is active. Optimization when movie is not visible on screen.\n" +
|
||||
"- Never: Never render movie to the material. You need to call 'RenderMovie()' to control rendering."), source.renderMode);
|
||||
source.maxFrameDrop = (CriManaMovieMaterialBase.MaxFrameDrop)EditorGUILayout.EnumPopup(new GUIContent("Max Frame Drop",
|
||||
"- Disable: Disable frame dropping.\n" +
|
||||
"- One~Ten: Drops one or more maximum frames before each rendering if not in-sync.\n" +
|
||||
"- Infinite: Drops all frames until playback is in-sync.\n" +
|
||||
"Default is 'Two'."), source.maxFrameDrop);
|
||||
|
||||
EditorGUILayout.PrefixLabel("Renderer Control");
|
||||
++EditorGUI.indentLevel;
|
||||
{
|
||||
source.target = (UnityEngine.UI.Graphic)EditorGUILayout.ObjectField("Target", source.target, typeof(UnityEngine.UI.Graphic), true);
|
||||
source.useOriginalMaterial = EditorGUILayout.Toggle("Use Original Material", source.useOriginalMaterial);
|
||||
}
|
||||
--EditorGUI.indentLevel;
|
||||
}
|
||||
--EditorGUI.indentLevel;
|
||||
}
|
||||
if (GUI.changed) {
|
||||
EditorUtility.SetDirty(this.source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} //namespace CriWare
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fe74e047c1a2845458bd23c1670338b4
|
||||
timeCreated: 1445245705
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,78 @@
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2015 CRI Middleware Co., Ltd.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace CriWare {
|
||||
|
||||
[CustomEditor(typeof(CriManaMovieMaterial))]
|
||||
public class CriManaMovieMaterialEditor : UnityEditor.Editor
|
||||
{
|
||||
private CriManaMovieMaterial source = null;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
source = (CriManaMovieMaterial)base.target;
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
if (this.source == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Undo.RecordObject(target, null);
|
||||
|
||||
GUI.changed = false;
|
||||
{
|
||||
EditorGUILayout.PrefixLabel("Startup Parameters");
|
||||
++EditorGUI.indentLevel;
|
||||
{
|
||||
EditorGUI.BeginChangeCheck();
|
||||
string moviePath = EditorGUILayout.TextField(new GUIContent("Movie Path", "The path to the movie file."), source.moviePath);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.moviePath = moviePath;
|
||||
}
|
||||
source.playOnStart = EditorGUILayout.Toggle(new GUIContent("Play On Start", "Immediatly play movie after Start of the component."), source.playOnStart);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool loop = EditorGUILayout.Toggle(new GUIContent("Loop", "Movie is played in continuous loop."), source.loop);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.loop = loop;
|
||||
}
|
||||
source.restartOnEnable = EditorGUILayout.Toggle(new GUIContent("Restart On Enable", "Restart playback after disabling and then enabling the component."), source.restartOnEnable);
|
||||
}
|
||||
--EditorGUI.indentLevel;
|
||||
EditorGUILayout.PrefixLabel("Render Parameters");
|
||||
++EditorGUI.indentLevel;
|
||||
{
|
||||
EditorGUI.BeginChangeCheck();
|
||||
bool additiveMode = EditorGUILayout.Toggle(new GUIContent("Additive Mode", "Movie is rendered in additive blend mode."), source.additiveMode);
|
||||
if (EditorGUI.EndChangeCheck()) {
|
||||
source.additiveMode = additiveMode;
|
||||
}
|
||||
source.material = (Material)EditorGUILayout.ObjectField(new GUIContent("Material",
|
||||
"The material to render movie.\n" +
|
||||
"If 'none' use an internal default material."), source.material, typeof(Material), true);
|
||||
source.renderMode = (CriManaMovieMaterial.RenderMode)EditorGUILayout.EnumPopup(new GUIContent("Render Mode",
|
||||
"- Always: Render movie at each frame.\n" +
|
||||
"- OnVisibility: Render movie only when owner GameObject is visible. Optimization when movie is not visible on screen.\n" +
|
||||
"- Never: Never render movie to the material. You need to call 'RenderMovie()' to control rendering."), source.renderMode);
|
||||
source.maxFrameDrop = (CriManaMovieMaterial.MaxFrameDrop)EditorGUILayout.EnumPopup(new GUIContent("Max Frame Drop",
|
||||
"- Disabled: Disable frame dropping.\n" +
|
||||
"- One~Ten: Drops successively one or more frames at maximum if not in-sync.\n" +
|
||||
"- Infinite: Drops all frames until playback is in-sync.\n" +
|
||||
"Default is 'Disabled'."), source.maxFrameDrop);
|
||||
}
|
||||
--EditorGUI.indentLevel;
|
||||
}
|
||||
if (GUI.changed) {
|
||||
EditorUtility.SetDirty(this.source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} //namespace CriWare
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 397790fc6753445de95b2745a82b84aa
|
||||
timeCreated: 1445249558
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28f29c601d9172d42a399e65de50bd21
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,172 @@
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2019 CRI Middleware Co., Ltd.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if UNITY_2018_1_OR_NEWER && CRIWARE_TIMELINE_1_OR_NEWER
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.Text.RegularExpressions;
|
||||
using UnityEditor.Timeline;
|
||||
using UnityEngine.Timeline;
|
||||
|
||||
namespace CriWare {
|
||||
|
||||
namespace CriTimeline.Mana
|
||||
{
|
||||
[CustomEditor(typeof(CriManaClip)), CanEditMultipleObjects]
|
||||
public class CriManaTimelineComponentEditor : UnityEditor.Editor
|
||||
{
|
||||
private SerializedObject m_object;
|
||||
private SerializedProperty m_filePath;
|
||||
private SerializedProperty m_loopWithinClip;
|
||||
private SerializedProperty m_movieFrameRate;
|
||||
private SerializedProperty m_clipDuration;
|
||||
private SerializedProperty m_movieData;
|
||||
private SerializedProperty m_useOnMemoryPlayback;
|
||||
private SerializedProperty m_fadeinDuration;
|
||||
private SerializedProperty m_fadeinCurve;
|
||||
private SerializedProperty m_fadeoutDuration;
|
||||
private SerializedProperty m_fadeoutCurve;
|
||||
private SerializedProperty m_fadeAudio;
|
||||
|
||||
public void OnEnable()
|
||||
{
|
||||
if (target != null) {
|
||||
m_object = new SerializedObject(target);
|
||||
m_filePath = m_object.FindProperty("m_moviePath");
|
||||
m_loopWithinClip = m_object.FindProperty("m_loopWithinClip");
|
||||
m_movieFrameRate = m_object.FindProperty("m_movieFrameRate");
|
||||
m_clipDuration = m_object.FindProperty("m_clipDuration");
|
||||
m_movieData = m_object.FindProperty("m_movieData");
|
||||
m_useOnMemoryPlayback = m_object.FindProperty("m_useOnMemoryPlayback");
|
||||
m_fadeinDuration = m_object.FindProperty("m_fadeinDuration");
|
||||
m_fadeoutDuration = m_object.FindProperty("m_fadeoutDuration");
|
||||
m_fadeAudio = m_object.FindProperty("m_fadeAudio");
|
||||
m_fadeinCurve = m_object.FindProperty("m_fadeinCurve");
|
||||
m_fadeoutCurve = m_object.FindProperty("m_fadeoutCurve");
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
if (m_object == null ||
|
||||
m_filePath == null ||
|
||||
m_loopWithinClip == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_object.Update();
|
||||
EditorGUILayout.PropertyField(m_useOnMemoryPlayback);
|
||||
EditorGUILayout.PropertyField(m_movieData);
|
||||
if (m_useOnMemoryPlayback.boolValue) {
|
||||
GUI.enabled = false;
|
||||
}
|
||||
|
||||
EditorGUILayout.PropertyField(m_filePath);
|
||||
|
||||
Event evt = Event.current;
|
||||
Rect moviePathFieldRect = GUILayoutUtility.GetLastRect();
|
||||
int id = GUIUtility.GetControlID(FocusType.Passive);
|
||||
switch (evt.type) {
|
||||
case EventType.DragUpdated:
|
||||
case EventType.DragPerform:
|
||||
if (!moviePathFieldRect.Contains(evt.mousePosition)) {
|
||||
break;
|
||||
}
|
||||
DragAndDrop.visualMode = DragAndDropVisualMode.Copy;
|
||||
DragAndDrop.activeControlID = id;
|
||||
if (evt.type == EventType.DragPerform) {
|
||||
DragAndDrop.AcceptDrag();
|
||||
foreach (var path in DragAndDrop.paths) {
|
||||
if (System.IO.Path.GetExtension(path).Equals(".usm")) {
|
||||
string[] splitPath = Regex.Split(path, "Assets/StreamingAssets/");
|
||||
if(splitPath.Length < 2) {
|
||||
Debug.LogWarning("[Warning] Not in StreamingAssets Folder [" + System.IO.Path.GetFileName(path) + "].");
|
||||
} else {
|
||||
m_filePath.stringValue = splitPath[1];
|
||||
}
|
||||
|
||||
} else {
|
||||
Debug.LogWarning("[Warning] Not usm file [" + System.IO.Path.GetFileName(path) + "].");
|
||||
}
|
||||
}
|
||||
DragAndDrop.activeControlID = 0;
|
||||
}
|
||||
Event.current.Use();
|
||||
break;
|
||||
}
|
||||
|
||||
EditorGUI.indentLevel++;
|
||||
GUI.enabled = false;
|
||||
EditorGUILayout.PropertyField(m_movieFrameRate);
|
||||
EditorGUILayout.PropertyField(m_clipDuration);
|
||||
GUI.enabled = true;
|
||||
EditorGUI.indentLevel--;
|
||||
EditorGUILayout.PropertyField(m_loopWithinClip);
|
||||
|
||||
if ((target as CriManaClip).m_clip == null) return;
|
||||
var duration = (target as CriManaClip).m_clip.duration;
|
||||
EditorGUILayout.LabelField("Fade In", EditorStyles.boldLabel);
|
||||
EditorGUI.indentLevel++;
|
||||
EditorGUILayout.Slider(m_fadeinDuration, 0, (float)duration - m_fadeoutDuration.floatValue, new GUIContent("Duration [sec]"));
|
||||
EditorGUILayout.CurveField(m_fadeinCurve, Color.cyan, new Rect(0, 0, 1, 1), new GUIContent("Curve"));
|
||||
EditorGUI.indentLevel--;
|
||||
EditorGUILayout.LabelField("Fade Out", EditorStyles.boldLabel);
|
||||
EditorGUI.indentLevel++;
|
||||
EditorGUILayout.Slider(m_fadeoutDuration, 0, (float)duration-m_fadeinDuration.floatValue, new GUIContent("Duration [sec]"));
|
||||
EditorGUILayout.CurveField(m_fadeoutCurve, Color.cyan, new Rect(0, 0, 1, 1), new GUIContent("Curve"));
|
||||
EditorGUI.indentLevel--;
|
||||
EditorGUILayout.PropertyField(m_fadeAudio);
|
||||
|
||||
m_object.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_2019_3_OR_NEWER
|
||||
|
||||
[CustomTimelineEditor(typeof(CriManaClip))]
|
||||
public class CriManaClipEditor : ClipEditor
|
||||
{
|
||||
public override void DrawBackground(TimelineClip clip, ClipBackgroundRegion region)
|
||||
{
|
||||
var manaClip = clip.asset as CriManaClip;
|
||||
|
||||
var fullRect = region.position;
|
||||
fullRect.x = Mathf.LerpUnclamped(region.position.xMax, region.position.xMin, (float)region.endTime / (float)(region.endTime - region.startTime));
|
||||
fullRect.width *= (float)clip.duration / (float)(region.endTime - region.startTime);
|
||||
|
||||
var fadeinEnd = fullRect.xMin + fullRect.width * (float)(manaClip.m_fadeinDuration / clip.duration);
|
||||
var fadeoutStart = fullRect.xMax - fullRect.width * (float)(manaClip.m_fadeoutDuration / clip.duration);
|
||||
|
||||
GL.Begin(GL.TRIANGLES);
|
||||
GL.Color(Color.black);
|
||||
GL.Vertex3(fullRect.xMin, fullRect.yMin, 0);
|
||||
GL.Vertex3(fadeinEnd, fullRect.yMin, 0);
|
||||
GL.Vertex3(fullRect.xMin, fullRect.yMax, 0);
|
||||
GL.Vertex3(fullRect.xMax, fullRect.yMin, 0);
|
||||
GL.Vertex3(fullRect.xMax, fullRect.yMax, 0);
|
||||
GL.Vertex3(fadeoutStart, fullRect.yMin, 0);
|
||||
GL.End();
|
||||
|
||||
GL.Begin(GL.LINES);
|
||||
GL.Color(Color.gray);
|
||||
GL.Vertex3(fadeinEnd, fullRect.yMin, 0);
|
||||
GL.Vertex3(fadeinEnd, fullRect.yMax, 0);
|
||||
GL.Vertex3(fadeoutStart, fullRect.yMin, 0);
|
||||
GL.Vertex3(fadeoutStart, fullRect.yMax, 0);
|
||||
GL.End();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
} //namespace CriWare
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 904fa2bb9e56dd1478e687f7e9861c52
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user