mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Reload scripts in Play Mode!!!
- Dont serialize static fields - Added some profiling to ScriptEngine - Removed superseded ScriptFieldMaps
This commit is contained in:
@@ -453,7 +453,8 @@ public static class EntitySerializer
|
||||
}
|
||||
else if (fieldType.IsClass)
|
||||
{
|
||||
// SerializeClass(fieldName, fieldValue, fieldType);
|
||||
//DeserializeClass(fieldName, fieldValue, fieldType);
|
||||
Log.Error("Class is not yet implemented.");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -565,6 +566,10 @@ public static class EntitySerializer
|
||||
|
||||
public static bool SerializeField(FieldInfo fieldInfo)
|
||||
{
|
||||
// TODO: We want to be able to serialize static fields in the future!
|
||||
if (fieldInfo.IsStatic)
|
||||
return false;
|
||||
|
||||
var serializeField = fieldInfo.HasCustomAttribute<SerializeFieldAttribute>();
|
||||
var dontSerializeField = fieldInfo.HasCustomAttribute<DontSerializeFieldAttribute>();
|
||||
//var hideField = fieldInfo.HasCustomAttribute<HideInEditorAttribute>();
|
||||
|
||||
Reference in New Issue
Block a user