public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { writer.WriteValue(AssetManager.ReverseLookup((Texture2D)value)); }