コード例 #1
0
 //Set type from serialized property
 public void OnAfterDeserialize()
 {
     if (!string.IsNullOrEmpty(AssetTypeSerialized))
     {
         this.assetType = Heureka_Serializer.DeSerializeType(AssetTypeSerialized);
         //assetTypeSerialized = "";
     }
 }
コード例 #2
0
 internal static void UpdateIconDictAfterSerialization(List <string> serializationHelperListIconTypes, List <Texture> serializationHelperListIconTextures)
 {
     iconDictionary = new Dictionary <Type, Texture>();
     for (int i = 0; i < serializationHelperListIconTypes.Count; i++)
     {
         Type deserializedType = Heureka_Serializer.DeSerializeType(serializationHelperListIconTypes[i]);
         if (deserializedType != null)
         {
             iconDictionary.Add(Heureka_Serializer.DeSerializeType(serializationHelperListIconTypes[i]), serializationHelperListIconTextures[i]);
         }
     }
 }
コード例 #3
0
        //Return the type tostring instead of the fully qualified type identifier
        protected override string getLabelContent(string item)
        {
            Type deserializedType = Heureka_Serializer.DeSerializeType(base.getLabelContent(item));

            if (deserializedType != null)
            {
                return(deserializedType.ToString());
            }
            //The Ignored type does no longer exist in project
            else
            {
                return("Unrecognized type : " + item);
            }
        }