Compare commits
2 Commits
b6439492df
...
0b562b7f65
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b562b7f65 | |||
| ccb51f26c3 |
@@ -32,7 +32,6 @@ MonoBehaviour:
|
|||||||
assemblyNames:
|
assemblyNames:
|
||||||
- Assembly-CSharp
|
- Assembly-CSharp
|
||||||
- Assembly-CSharp-firstpass
|
- Assembly-CSharp-firstpass
|
||||||
- Cinemachine
|
|
||||||
- Dreamteck.Splines
|
- Dreamteck.Splines
|
||||||
- Dreamteck.Utilities
|
- Dreamteck.Utilities
|
||||||
- EasySave3
|
- EasySave3
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Convention.WindowsUI;
|
using System;
|
||||||
using System;
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -8,7 +7,9 @@ using System.Reflection;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using Convention.WindowsUI;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
|
using UnityEditor.Build;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Events;
|
using UnityEngine.Events;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
@@ -2199,6 +2200,39 @@ namespace Convention
|
|||||||
public static class ScriptingDefineUtility
|
public static class ScriptingDefineUtility
|
||||||
{
|
{
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
|
|
||||||
|
#if UNITY_6000_0_OR_NEWER
|
||||||
|
public static void Add(string define, NamedBuildTarget target, bool log = false)
|
||||||
|
{
|
||||||
|
string definesString = PlayerSettings.GetScriptingDefineSymbols(target);
|
||||||
|
if (definesString.Contains(define)) return;
|
||||||
|
string[] allDefines = definesString.Split(';');
|
||||||
|
ArrayUtility.Add(ref allDefines, define);
|
||||||
|
definesString = string.Join(";", allDefines);
|
||||||
|
PlayerSettings.SetScriptingDefineSymbols(target, definesString);
|
||||||
|
Debug.Log("Added \"" + define + "\" from " + EditorUserBuildSettings.selectedBuildTargetGroup + " Scripting define in Player Settings");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Remove(string define, NamedBuildTarget target, bool log = false)
|
||||||
|
{
|
||||||
|
string definesString = PlayerSettings.GetScriptingDefineSymbols(target);
|
||||||
|
if (!definesString.Contains(define)) return;
|
||||||
|
string[] allDefines = definesString.Split(';');
|
||||||
|
ArrayUtility.Remove(ref allDefines, define);
|
||||||
|
definesString = string.Join(";", allDefines);
|
||||||
|
PlayerSettings.SetScriptingDefineSymbols(target, definesString);
|
||||||
|
Debug.Log("Removed \"" + define + "\" from " + EditorUserBuildSettings.selectedBuildTargetGroup + " Scripting define in Player Settings");
|
||||||
|
}
|
||||||
|
public static void Add(string define, BuildTargetGroup target, bool log = false)
|
||||||
|
{
|
||||||
|
Add(define, NamedBuildTarget.FromBuildTargetGroup(target), log);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Remove(string define, BuildTargetGroup target, bool log = false)
|
||||||
|
{
|
||||||
|
Remove(define, NamedBuildTarget.FromBuildTargetGroup(target), log);
|
||||||
|
}
|
||||||
|
#else
|
||||||
public static void Add(string define, BuildTargetGroup target, bool log = false)
|
public static void Add(string define, BuildTargetGroup target, bool log = false)
|
||||||
{
|
{
|
||||||
string definesString = PlayerSettings.GetScriptingDefineSymbolsForGroup(target);
|
string definesString = PlayerSettings.GetScriptingDefineSymbolsForGroup(target);
|
||||||
@@ -2220,6 +2254,8 @@ namespace Convention
|
|||||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(target, definesString);
|
PlayerSettings.SetScriptingDefineSymbolsForGroup(target, definesString);
|
||||||
Debug.Log("Removed \"" + define + "\" from " + EditorUserBuildSettings.selectedBuildTargetGroup + " Scripting define in Player Settings");
|
Debug.Log("Removed \"" + define + "\" from " + EditorUserBuildSettings.selectedBuildTargetGroup + " Scripting define in Player Settings");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2444,33 +2480,6 @@ namespace Convention
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Convention
|
|
||||||
{
|
|
||||||
public static partial class ConventionUtility
|
|
||||||
{
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Unity engine function to disable the GC
|
|
||||||
/// </summary>
|
|
||||||
public static void GC_disable()
|
|
||||||
{
|
|
||||||
#if !UNITY_EDITOR
|
|
||||||
GarbageCollector.GCMode = GarbageCollector.Mode.Disabled;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Unity engine function to enable the GC
|
|
||||||
/// </summary>
|
|
||||||
public static void GC_enable()
|
|
||||||
{
|
|
||||||
#if !UNITY_EDITOR
|
|
||||||
GarbageCollector.GCMode = GarbageCollector.Mode.Enabled;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Convention
|
namespace Convention
|
||||||
{
|
{
|
||||||
public static partial class Utility
|
public static partial class Utility
|
||||||
|
|||||||
@@ -844,28 +844,26 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 72ece51f2901e7445ab60da3685d6b5f, type: 3}
|
m_Script: {fileID: 11500000, guid: 72ece51f2901e7445ab60da3685d6b5f, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_ShowDebugText: 0
|
ShowDebugText: 0
|
||||||
m_ShowCameraFrustum: 1
|
ShowCameraFrustum: 1
|
||||||
m_IgnoreTimeScale: 0
|
IgnoreTimeScale: 0
|
||||||
m_WorldUpOverride: {fileID: 0}
|
WorldUpOverride: {fileID: 0}
|
||||||
m_UpdateMethod: 2
|
ChannelMask: -1
|
||||||
m_BlendUpdateMethod: 1
|
UpdateMethod: 2
|
||||||
m_DefaultBlend:
|
BlendUpdateMethod: 1
|
||||||
m_Style: 1
|
LensModeOverride:
|
||||||
m_Time: 0.5
|
Enabled: 0
|
||||||
m_CustomCurve:
|
DefaultMode: 2
|
||||||
|
DefaultBlend:
|
||||||
|
Style: 1
|
||||||
|
Time: 0.5
|
||||||
|
CustomCurve:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Curve: []
|
m_Curve: []
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
m_CustomBlends: {fileID: 0}
|
CustomBlends: {fileID: 0}
|
||||||
m_CameraCutEvent:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
m_CameraActivatedEvent:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
--- !u!114 &1937889226080204937
|
--- !u!114 &1937889226080204937
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1060,12 +1058,13 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3}
|
m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_ExcludedPropertiesInInspector:
|
Priority:
|
||||||
- m_Script
|
Enabled: 0
|
||||||
m_LockStageInInspector:
|
m_Value: 0
|
||||||
|
OutputChannel: 1
|
||||||
|
StandbyUpdate: 2
|
||||||
m_StreamingVersion: 20170927
|
m_StreamingVersion: 20170927
|
||||||
m_Priority: 10
|
m_LegacyPriority: 10
|
||||||
m_StandbyUpdate: 2
|
|
||||||
m_LookAt: {fileID: 0}
|
m_LookAt: {fileID: 0}
|
||||||
m_Follow: {fileID: 0}
|
m_Follow: {fileID: 0}
|
||||||
m_Lens:
|
m_Lens:
|
||||||
@@ -1075,17 +1074,30 @@ MonoBehaviour:
|
|||||||
FarClipPlane: 5000
|
FarClipPlane: 5000
|
||||||
Dutch: 0
|
Dutch: 0
|
||||||
ModeOverride: 0
|
ModeOverride: 0
|
||||||
LensShift: {x: 0, y: 0}
|
|
||||||
GateFit: 2
|
GateFit: 2
|
||||||
FocusDistance: 10
|
|
||||||
m_SensorSize: {x: 1, y: 1}
|
m_SensorSize: {x: 1, y: 1}
|
||||||
m_Transitions:
|
LensShift: {x: 0, y: 0}
|
||||||
|
FocusDistance: 10
|
||||||
|
Iso: 200
|
||||||
|
ShutterSpeed: 0.005
|
||||||
|
Aperture: 16
|
||||||
|
BladeCount: 5
|
||||||
|
Curvature: {x: 2, y: 11}
|
||||||
|
BarrelClipping: 0.25
|
||||||
|
Anamorphism: 0
|
||||||
|
BlendHint: 0
|
||||||
|
m_OnCameraLiveEvent:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_ExcludedPropertiesInInspector:
|
||||||
|
- m_Script
|
||||||
|
m_LockStageInInspector:
|
||||||
|
m_LegacyTransitions:
|
||||||
m_BlendHint: 0
|
m_BlendHint: 0
|
||||||
m_InheritPosition: 0
|
m_InheritPosition: 0
|
||||||
m_OnCameraLive:
|
m_OnCameraLive:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_LegacyBlendHint: 0
|
|
||||||
m_ComponentOwner: {fileID: 11535700043902880}
|
m_ComponentOwner: {fileID: 11535700043902880}
|
||||||
--- !u!20 &2319537278398014183
|
--- !u!20 &2319537278398014183
|
||||||
Camera:
|
Camera:
|
||||||
@@ -1439,12 +1451,13 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3}
|
m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_ExcludedPropertiesInInspector:
|
Priority:
|
||||||
- m_Script
|
Enabled: 0
|
||||||
m_LockStageInInspector:
|
m_Value: 0
|
||||||
|
OutputChannel: 1
|
||||||
|
StandbyUpdate: 2
|
||||||
m_StreamingVersion: 20170927
|
m_StreamingVersion: 20170927
|
||||||
m_Priority: 10
|
m_LegacyPriority: 10
|
||||||
m_StandbyUpdate: 2
|
|
||||||
m_LookAt: {fileID: 0}
|
m_LookAt: {fileID: 0}
|
||||||
m_Follow: {fileID: 0}
|
m_Follow: {fileID: 0}
|
||||||
m_Lens:
|
m_Lens:
|
||||||
@@ -1454,17 +1467,30 @@ MonoBehaviour:
|
|||||||
FarClipPlane: 5000
|
FarClipPlane: 5000
|
||||||
Dutch: 0
|
Dutch: 0
|
||||||
ModeOverride: 0
|
ModeOverride: 0
|
||||||
LensShift: {x: 0, y: 0}
|
|
||||||
GateFit: 2
|
GateFit: 2
|
||||||
FocusDistance: 10
|
|
||||||
m_SensorSize: {x: 1, y: 1}
|
m_SensorSize: {x: 1, y: 1}
|
||||||
m_Transitions:
|
LensShift: {x: 0, y: 0}
|
||||||
|
FocusDistance: 10
|
||||||
|
Iso: 200
|
||||||
|
ShutterSpeed: 0.005
|
||||||
|
Aperture: 16
|
||||||
|
BladeCount: 5
|
||||||
|
Curvature: {x: 2, y: 11}
|
||||||
|
BarrelClipping: 0.25
|
||||||
|
Anamorphism: 0
|
||||||
|
BlendHint: 0
|
||||||
|
m_OnCameraLiveEvent:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_ExcludedPropertiesInInspector:
|
||||||
|
- m_Script
|
||||||
|
m_LockStageInInspector:
|
||||||
|
m_LegacyTransitions:
|
||||||
m_BlendHint: 0
|
m_BlendHint: 0
|
||||||
m_InheritPosition: 0
|
m_InheritPosition: 0
|
||||||
m_OnCameraLive:
|
m_OnCameraLive:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_LegacyBlendHint: 0
|
|
||||||
m_ComponentOwner: {fileID: 3000479872335485243}
|
m_ComponentOwner: {fileID: 3000479872335485243}
|
||||||
--- !u!20 &7206794941111705965
|
--- !u!20 &7206794941111705965
|
||||||
Camera:
|
Camera:
|
||||||
|
|||||||
Reference in New Issue
Block a user