I want to fill my Gun dataTable with the ADS camera associated with each gun/row but when I build the dataTable based on the structure. Actor Component &/or Camera Component disappear. What am I missing? Can these not be stored in structures? Do I have to use a Class Reference?
Hi there,
Actor component are blueprints that can store custom code, that serves as “modules” for an actor. Camera is a primitive component, but your variable can be saved as Camera Component object reference. I believe you want to save the Field of View. If you want to save the camera transform settings, you also need to save the variables from the spring arm component (length, offset, etc).
I found a workaround by creating a camera actor in the content browser, spawning the camera on the gun’s defined camera socket, and then activating the camera when aiming.
I forgot the spring arm so I hope it will be as simple as spawning it and attaching it to the gun and the camera to the spring arm.
How can I put something into a dataTable if it isnt created in the content browser/is attached to mesh in viewport? For example this camera.
If uttilize my DataTable, I’ll be creating and attaching the camera actor to each gun within it’s blueprint manually, rather than creating in the content browser and then spawning the class in the event graph, like below.