void stackableItemsSettings()
{
EditorGUILayout.PropertyField(inventoryStackable, new GUIContent("Splitting/Stacking"));
if (inventoryStackable.boolValue)
{
EditorGUI.indentLevel++;
showStackableItems = EditorGUILayout.Foldout(showStackableItems, "StackNumberPosition");
if (showStackableItems)
{
inventoryStackable.boolValue = true;
EditorGUI.BeginChangeCheck();
EditorGUI.indentLevel++;
positionNumberX.intValue = EditorGUILayout.IntSlider("Position X:", positionNumberX.intValue, -(inventorySlotSize.intValue / 2), inventorySlotSize.intValue / 2);
positionNumberY.intValue = EditorGUILayout.IntSlider("Position Y:", positionNumberY.intValue, -(inventorySlotSize.intValue / 2), inventorySlotSize.intValue / 2);
EditorGUI.indentLevel--;
if (EditorGUI.EndChangeCheck())
{
inv.stackableSettings();
}
}
else
{
inv.stackableSettings();
}
EditorGUI.indentLevel--;
}
else
{
inv.stackableSettings();
}
}