While I was trying to make a mask texture through scene capture 2D I realized that you cannot add an actor to SHOW ONLY ACTORS array, It lets you “add” it but nothing gets actually added so the array stays empty whatever you press. Maybe I am doing something wrong but to me it doesnt seem like it. Also you can’t add anything to HIDDEN ACTORS array.
Yep. Seems like a bug.
Look at Your log, something like that:
“LogProperty:Warning: Illegal TEXT reference to a private object in external package (StaticMeshActor /Game/Maps/BlueprintOffice.BlueprintOffice:PersistentLevel.S_BuildingSetA_Tree_02_8) from referencer (SceneCaptureComponent2D /Engine/Transient.World_0:PersistentLevel.BP_Security_Camera_Tracking_C_0.SceneCapture). Import failed…”
You can’t do that way. Blueprint You’re editing not exist in level. You have to make instance of it (like drag one in scene), then like @AndrewHurley showed add all the actors You need.
He is correct, you need to add an instance of that blueprint to the scene and then use the Show Only Actors. If you think about it, if you are trying to Show Only Actors in an empty blueprint viewport, you would expect it not to work. There is nothing to show at that point.
I want to reference the actor in blueprint, i dont need it to show. Think about it:
I have a pawn which caries a scene capture 2d component and i spawn the pawn at the begining of a game. i should be able to reference some scene actor without having the instance of that particular blueprint in the scene.
Thing that you are saying is like you said that i cannot put a particle system component and reference a particle system unless blueprint is on the scene?
No one stops You from putting that actor in the scene before game starts. You could just move it on begin play in required location.
You could dynamically add actors into list:
One thing You should keep in mind. Actor Blueprints do not “exist” until spawned. They can’t address something in level until they spawned (as well as levels that are not loaded yet).