Announcement

Collapse
No announcement yet.

disable/enable actor how destroy/spawn

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    disable/enable actor how destroy/spawn

    Good afternoon everyone. I need to hide my actor. A bunch of set actor hidden in game and set actor enabled collision and set actor tick enabled does not suit me, because after disabling the collision, the object starts to fall. I would like something like destroy and spawn at the same coordinates as the object. As I understand it, it is stupid to delete and create them expensive in terms of resources. So the question arose whether it is possible to somehow simply completely hide the object without deleting it.
    Yes, I want to hide objects with a specific tag
    TY

    #2
    You can set
    Code:
    actor.set_is_temporarily_hidden_in_editor(True)
    in python, which is also available in blueprints.

    Comment


      #3
      A bunch of set actor hidden in game and set actor enabled collision and set actor tick enabled does not suit me, because after disabling the collision, the object starts to fall.
      Collision comes in many flavours (channels). Disable a channel you no longer wish to check collision against and set the object (or component) to Not Visible or Hidden. You get to choose with a lot of granularity when and how colliders engage:

      Click image for larger version  Name:	collision.jpg Views:	0 Size:	97.1 KB ID:	1795185

      If the above settings are applied, this Physics Body will ignore Pawn's collision but will be happy to interact with everything else.

      [...]is possible to somehow simply completely hide the object without deleting it. Yes, I want to hide objects with a specific tag
      So in your case, it'd be something along the lines of:

      Click image for larger version  Name:	Annotation 2020-07-31 090638.jpg Views:	0 Size:	97.8 KB ID:	1795186

      Comment

      Working...
      X