I recently run into one of those weird random appearing errors that came up this lovely day whenever I open my Menu with 'Combatant' displaying Portrait in form of his 3d prefab.
ArgumentNullException: Argument cannot be null.
Parameter name: textureToCopy
UnityEngine.RenderTexture..ctor (UnityEngine.RenderTexture textureToCopy) (at C:/buildslave/unity/build/Runtime/Export/Texture.cs:121)
ORKFramework.GUIBoxContent.InitializePortrait (IPortrait portrait)
ORKFramework.HUDStatus.CreateLabels (ORKFramework.GUIBox box, System.Collections.Generic.List`1& label, Rect displayBounds, ORKFramework.Combatant combatant, Boolean isBestiary)
ORKFramework.UI.MultiHUDContent.UpdateCombatant (ORKFramework.GUIBox box, ORKFramework.Combatant combatant, Boolean isBestiary, Rect contentBounds, Rect previousBounds)
ORKFramework.CombatantHUDWrapper.CreateHUDContent (ORKFramework.GUIBox box, Boolean adjustWidth, Boolean adjustHeight, UnityEngine.Rect& bounds)
ORKFramework.DialogueContent.CreateDataContent (HUDWrapperPlacement placement, System.Single& contentHeight, Rect textBounds)
ORKFramework.DialogueContent.CalculateContent (Single baseWidth, Boolean recalced)
ORKFramework.DialogueContent.Init (ORKFramework.GUIBox box)
ORKFramework.GUIBox.Tick (Single t)
ORKFramework.GUIHandler.Tick (Single t)
I was cleaning my project days ago and deleted one unused render texture in folder. Assumed it may be that issue, except I'm not using any render textures, just prefabs as images in combatant menus.
Now what happens is that it stays in black screen and I get 100 these errors every second. It used to work days ago without problems.
When I disable the portrait in my Menu Screen setup, error disappears....
Any suggestions? I'm using 2.27.1 ORK with Unity 2017.4.27.
Post edited by Machal on