// Fixes nulls in serialization manually...*sigh*. public override void OnDeserialization() { if (objID == null) { objID = new ObjectID(); } objID.OnDeserialization(); if (searchProperty == null) { searchProperty = new PropertyPopupData(); } searchProperty.label = "Property:"; if (propertyCriteria == null) { propertyCriteria = new DynamicTypeField(); } propertyCriteria.searchItem = this; propertyCriteria.OnDeserialization(); // sigh...this is getting old. propertyCriteria.showMoreOptions = showMoreOptions; searchProperty.SetType(objID.obj); initializationContext = new InitializationContext(searchProperty.fieldData, objID.obj); if (searchProperty.HasOptions()) { propertyCriteria.SetType(initializationContext); } if (searchDepth == 0) { root = this; } OnDeserializeSubSearch(); }
// Fixes nulls in serialization manually...*sigh*. public override void OnDeserialization() { popupLabel = "Swap With Prefab"; if(objID == null) { objID = new ObjectID(); } objID.OnDeserialization(); }
// Fixes nulls in serialization manually...*sigh*. public override void OnDeserialization() { if (objID == null) { objID = new ObjectID(); updateTransform = true; rename = true; } objID.OnDeserialization(); searchValid = parentSearchItem.validateSearch(objID.obj); }
public void OnDeserialization() { if (First == null) { First = new ObjectID(); } First.OnDeserialization(); if (Second == null) { Second = new ObjectID(); } Second.OnDeserialization(); }
// Fixes nulls in serialization manually...*sigh*. public override void OnDeserialization() { if (objID == null) { objID = new ObjectID(); } objID.OnDeserialization(); searchValid = validateSearch(objID.obj); if (replaceItem == null) { replaceItem = new ReplaceItemPrefabInstance(); } replaceItem.parentSearchItem = this; replaceItem.OnDeserialization(); }
// Fixes nulls in serialization manually...*sigh*. public void OnDeserialization() { if (objID == null) { objID = new ObjectID(); } // hey chris! if you screw up up your hexadecimal bitmasking again, uncomment this! // assetScope = allAssets; if (scopeOptionStrings == null) { scopeOptionStrings = new string[] { Keys.Everything, Keys.Location }; } objID.OnDeserialization(); }
public override void OnDeserialization() { popupLabel = "Replace Another Property"; typeHash = new Dictionary <Type, ReplaceItem>(); if (objID == null) { objID = new ObjectID(); } objID.OnDeserialization(); if (searchProperty == null) { searchProperty = new PropertyPopupData(); } searchProperty.label = "Property:"; searchProperty.SetType(objID.obj); initializationContext = new InitializationContext(searchProperty.fieldData, objID.obj); initSubItem <ReplaceItemString>(new List <Type>() { typeof(string) }, ref replaceItemString); initSubItem <ReplaceItemFloat>(new List <Type>() { typeof(float) }, ref replaceItemFloat); initSubItem <ReplaceItemObject>(new List <Type>() { typeof(UnityEngine.Object) }, ref replaceItemObject); initSubItem <ReplaceItemInt>(new List <Type>() { typeof(int), typeof(uint), typeof(short), typeof(ushort), typeof(byte), typeof(sbyte), }, ref replaceItemInt); initSubItem <ReplaceItemDouble>(new List <Type>() { typeof(double) }, ref replaceItemDouble); initSubItem <ReplaceItemBool>(new List <Type>() { typeof(bool) }, ref replaceItemBool); initSubItem <ReplaceItemChar>(new List <Type>() { typeof(char) }, ref replaceItemChar); initSubItem <ReplaceItemVector2>(new List <Type>() { typeof(Vector2) }, ref replaceItemVector2); initSubItem <ReplaceItemVector3>(new List <Type>() { typeof(Vector3) }, ref replaceItemVector3); initSubItem <ReplaceItemVector4>(new List <Type>() { typeof(Vector4) }, ref replaceItemVector4); initSubItem <ReplaceItemRect>(new List <Type>() { typeof(Rect) }, ref replaceItemRect); initSubItem <ReplaceItemColor>(new List <Type>() { typeof(Color), typeof(Color32) }, ref replaceItemColor); initSubItem <ReplaceItemQuaternion>(new List <Type>() { typeof(Quaternion) }, ref replaceItemQuaternion); initSubItem <ReplaceItemEnum>(new List <Type>() { typeof(Enum) }, ref replaceItemEnum); type = null; if (objID.obj != null) { setType(initializationContext.fieldData.fieldType); } }