Hey,
I thought I had a cool idea, but it failed. It ends up freezing unity and giving me an error.
StackOverflowException: The requested operation caused a stack overflow.
GameCreator.CustomModules.RTS.SelectableObjectManager.get_DragBoxBorderColour () (at Assets/Plugins/GameCreatorModules/RTS/Scripts/SelectableObjectManager.cs:19)
.........
GameCreator.CustomModule.R<message truncated>
So in my class I have something like this… The set calls a function.
public Color DragBoxBorderColour
{
get => DragBoxBorderColour;
get => DragBoxBorderColour = SetDragBoxColour(DefaulDragBoxColourTypeEnum.Border, value);
}
And in the editor class I have this
_Target.DragBoxBorderColour = EditorGUILayout.ColorField(GUIC_DragBoxBorderColour, _Target.DragBoxBorderColour);
Fails Hard!!! I tested that the function used inside the set, on a Button function from the inspector and it works fine. It just doesn’t like my setup.
Is there a way to fix this or am I violating some kind of principal?
Thanks in advance