Display Variables in Panel

Hello, I am trying to access variables on my script through “UILayout.prop()”, but can’t figure out how to do it. I tried using "UILayout.prop(properties, “variable”) where “properties” is a class that has my properties in it, but that gives various errors. What’s the best way to do this? Thanks for any help!

I figured it out. I can store the properties in “bpy.types.Scene”, then access them through “UILayout.prop(bpy.context.scene, “property”)”.

True, panel classes can’t have own properties.