mirror of
https://github.com/maxartz15/ScriptableData.git
synced 2024-11-23 06:45:34 +01:00
NonSerialized fields
Fixed private fields in ScriptableObject getting serialized.
This commit is contained in:
parent
22fee290ce
commit
f00c7d43aa
@ -1,4 +1,6 @@
|
|||||||
# Change Log:
|
# Change Log:
|
||||||
|
## 1.1.2
|
||||||
|
- Fixed private fields in ScriptableObject getting serialized.
|
||||||
## 1.1.1
|
## 1.1.1
|
||||||
- Instance indicator colors.
|
- Instance indicator colors.
|
||||||
- Code refactor.
|
- Code refactor.
|
||||||
|
@ -7,7 +7,7 @@ namespace ScriptableData
|
|||||||
{
|
{
|
||||||
public event Action<T0> OnValueChangedEvent;
|
public event Action<T0> OnValueChangedEvent;
|
||||||
|
|
||||||
private T0 _value;
|
[NonSerialized] private T0 _value;
|
||||||
public T0 Value
|
public T0 Value
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -37,7 +37,7 @@ namespace ScriptableData
|
|||||||
{
|
{
|
||||||
public event Action<T0, T1> OnValueChangedEvent;
|
public event Action<T0, T1> OnValueChangedEvent;
|
||||||
|
|
||||||
private T0 _value;
|
[NonSerialized] private T0 _value;
|
||||||
public T0 Value
|
public T0 Value
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -51,7 +51,7 @@ namespace ScriptableData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private T1 _value1;
|
[NonSerialized] private T1 _value1;
|
||||||
public T1 Value1
|
public T1 Value1
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -88,7 +88,7 @@ namespace ScriptableData
|
|||||||
{
|
{
|
||||||
public event Action<T0, T1, T2> OnValueChangedEvent;
|
public event Action<T0, T1, T2> OnValueChangedEvent;
|
||||||
|
|
||||||
private T0 _value;
|
[NonSerialized] private T0 _value;
|
||||||
public T0 Value
|
public T0 Value
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -102,7 +102,7 @@ namespace ScriptableData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private T1 _value1;
|
[NonSerialized] private T1 _value1;
|
||||||
public T1 Value1
|
public T1 Value1
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -116,7 +116,7 @@ namespace ScriptableData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private T2 _value2;
|
[NonSerialized] private T2 _value2;
|
||||||
public T2 Value2
|
public T2 Value2
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -161,7 +161,7 @@ namespace ScriptableData
|
|||||||
{
|
{
|
||||||
public event Action<T0, T1, T2, T3> OnValueChangedEvent;
|
public event Action<T0, T1, T2, T3> OnValueChangedEvent;
|
||||||
|
|
||||||
private T0 _value;
|
[NonSerialized] private T0 _value;
|
||||||
public T0 Value
|
public T0 Value
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -175,7 +175,7 @@ namespace ScriptableData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private T1 _value1;
|
[NonSerialized] private T1 _value1;
|
||||||
public T1 Value1
|
public T1 Value1
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -189,7 +189,7 @@ namespace ScriptableData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private T2 _value2;
|
[NonSerialized] private T2 _value2;
|
||||||
public T2 Value2
|
public T2 Value2
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -203,7 +203,7 @@ namespace ScriptableData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private T3 _value3;
|
[NonSerialized] private T3 _value3;
|
||||||
public T3 Value3
|
public T3 Value3
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "com.vertexcolor.scriptabledata",
|
"name": "com.vertexcolor.scriptabledata",
|
||||||
"displayName": "ScriptableData",
|
"displayName": "ScriptableData",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"unity": "2019.1",
|
"unity": "2019.1",
|
||||||
"description": "ScriptableData code base for ScriptableObject workflow.",
|
"description": "ScriptableData code base for ScriptableObject workflow.",
|
||||||
"category": "Tool",
|
"category": "Tool",
|
||||||
|
Loading…
Reference in New Issue
Block a user