Skip to content

Commit 9eae079

Browse files
committed
Removed some warnings
1 parent 70f3e8a commit 9eae079

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

Editor/Utilities/RandomListDrawer.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ public sealed class RandomListDrawer : UnityEditor.PropertyDrawer
7777

7878

7979
private const int WEIGHT_HEIGHT = 32;
80-
private const int WEIGHT_RANGE_PADDING = 2;
8180
private static readonly int WEIGHT_SLIDER_ID = "RISTSliderIDHash".GetHashCode();
8281

8382
private int _selectedSlider = -1;
84-
private int _selectedWeight = -1;
8583
private ReorderableList _list;
8684

8785

@@ -253,16 +251,11 @@ private void OnSliderBoxGUI(Rect groupRect, SerializedProperty property, List<We
253251
evt.Use();
254252
GUIUtility.hotControl = sliderId;
255253

256-
// Check for button click
257-
var clickedButton = false;
258-
259-
260254
foreach (var weight in sliders)
261255
{
262256
if (weight.buttonPosition.Contains(evt.mousePosition))
263257
{
264258
_selectedSlider = weight.index;
265-
clickedButton = true;
266259
break;
267260
}
268261
}

Runtime/Behaviours/PerCameraSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static RenderSettingsState FromCurrentRenderSettings()
7878
[Auto, SerializeField]
7979
private new Camera camera;
8080

81-
public bool enabled = true;
81+
public bool active = true;
8282
public RenderSettingsState renderSettings;
8383

8484
[System.Serializable]
@@ -95,7 +95,7 @@ public class GlobalShaderProperty
9595

9696
private void OnPreRender()
9797
{
98-
if (!enabled) return;
98+
if (!active) return;
9999
#if UNITY_EDITOR && false
100100
if (Application.isPlaying)
101101
#endif
@@ -112,7 +112,7 @@ private void OnPreRender()
112112

113113
private void OnPostRender()
114114
{
115-
if (!enabled) return;
115+
if (!active) return;
116116
#if UNITY_EDITOR && false
117117
if (Application.isPlaying)
118118
#endif

Runtime/Utilities/Singleton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public abstract class Singleton<T> : MonoBehaviour where T : Singleton<T>
2323
internal static T _instance;
2424
private static bool _isquitting = false;
2525

26-
#if UNITY_2019_2_OR_NEWER
26+
#if false && UNITY_2019_2_OR_NEWER
2727
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
2828
static void Init()
2929
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.lachee.utilities",
3-
"version": "1.4.5",
3+
"version": "1.4.6",
44
"displayName": "Lachee's Utilities",
55
"description": "Bunch of utility functionality",
66
"unity": "2019.1",

0 commit comments

Comments
 (0)