dancinggoat23
New member
Hi
I'm working on a custom crafting menu, and want to display an 'attribute requirement' field on any recipe that has such. To do so, I'm subclassing RecipePanel to create one that includes a TextMeshPro widget for that purpose, and I noticed that the m_Recipe field in the class is private and, therefore, inaccessible to my subclass. Was that intentional, and if so, what's the recommended way for me to get the currently displayed recipe?
thanks!
Dave
Follow-up: I went ahead & changed the access level for that to protected and moved forward with my custom recipe panel. Works very well.
I'm working on a custom crafting menu, and want to display an 'attribute requirement' field on any recipe that has such. To do so, I'm subclassing RecipePanel to create one that includes a TextMeshPro widget for that purpose, and I noticed that the m_Recipe field in the class is private and, therefore, inaccessible to my subclass. Was that intentional, and if so, what's the recommended way for me to get the currently displayed recipe?
thanks!
Dave
Follow-up: I went ahead & changed the access level for that to protected and moved forward with my custom recipe panel. Works very well.
Last edited: