PrintAllObjectsNamesAndClasses keeps giving compiling error

Hello Everyone,

so i have used the function PrintAllObjectsNamesAndClasses once to test then I removed it,
now every time i compile i get this error
knowing that when i compile again right after it compiles fine … but i have to do it twice in order to compile it …
and im not sure if it really compiles fine because i added variables and they are not shown in the editor nor the game when i tried to log the variables.

here is my variable code just to make sure.

	UPROPERTY(EditDefaultsOnly, Category = "PlayerCondition", Replicated)
	float maxHealth;


When i remove the “Replicated” in the variable macro i get a successful compiling. but the question is … why?

Hey MrHero-

Could you explain how you’re using the printAllObjectsNamesAndClasses function or provide the code where the call is made? I have added the variable as you described however I’m not sure how you’re calling/using the function so I’m not sure how to proceed in testing this.


Hi MrHero,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.