Select an Actor for an index

Hello

Any ideas why I can not select a camera to an index. This has worked in 4.27 but stopped working in 5.1.

I am not able to select none of the cameras in the drop down, and not with the pick Actor from scene nor with Select Actor in the viewport.

Thanking in advance:)
Ramses


You could change the variable type to ‘actor’ instead of ‘cine camera’.

Thank you for your idea:) Unfortunately something else must be wrong.

Recreate the Get node, it still expects a different type.

1 Like

Thank you:) The game stopped loading when changing the variable type and recreating the Get. There is a create widget -node right after Event begin play, even that stopped working. Sorry:)

Should have probably said at the beginning that there has also been an error message after upgrade: Accessed None trying to read property CallFunc_Array_Get_Item_2". Node: Add Actor Local Rotation Graph: EventGraph Function: Execute Ubergraph…

A var you try to access is nullptr, you can’t access nullptr.
Do an IsValid check on it before you do try to access it.
If it is not valid it has not been initalized to a proper value or it has been deleted.

Thank you Roy. I´m getting closer:)

Hi there @RamsesThe3. Hope you’re well!

This topic has been moved from International to Programming & Scripting.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing! :slight_smile:

Problem solved in private conversation. Initially I changed the hard pointers to soft pointers to be able to reference scene actors. However, we ran into what seems to be a bug, if someone can confirm a bug / share a solution?:

[5.1 / 5.1.1] Level Streaming >> -? Duplicated Actors ?-. - #6 by Roy_Wierer.Seda145

The direct issue of this post was solved by retrieving cameras by tag during runtime.