x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

DefaultPawn mesh is hidden when possessed by player

Is the DefaultPawn's mesh supposed to become invisible when possessed by a player controller?
If it is, is there a way to disable that behavior?
If it is not, any suggestions on how to troubleshoot the issue?

In my own troubleshooting, I created a blank blueprint project, set up a GameMode with the default pawn class set to a slightly modified DefaultPawn. The only modifications are a SpringArm and Camera combination that pulls the player's view away from the pawn's mesh. (300cm length, third person style to prevent camera clipping.)

I then dropped two pawns into the level and assigned one to auto-posses the player. They are positioned close to each other but not overlapping. When run, the pawn that is not possessed by the player behaves as expected, its sphere mesh visible to the player camera. But the mesh of the pawn possessed by the player is invisible to the player camera.

I have searched through all the visibility related settings I can find, such as Rendering > Visible and Hidden in Game. They are all as expected. Anywhere else I should be looking?

Product Version: UE 4.19
Tags:
more ▼

asked Jun 06 '18 at 08:09 PM in Blueprint Scripting

avatar image

BonzoFSP
16 3 4 9

avatar image BladeMaster Jun 06 '18 at 08:33 PM

When you run it in the editor, press the eject button and you will be in a kind of spectator mode. Move around the level and see if your possessed pawn mesh is showing up. If it is showing up, there might be issues with the camera and spring arm setup that you did. If you don't mind, please share your project files. I will take a look and see if anything is wrong.

alt text

ss1.png (9.9 kB)
avatar image AZTECCO Jun 06 '18 at 08:38 PM

Hello!

No is not normal this behavior.. Are you really sure your camera is outside the mesh? 300 cm would be enough.. ...a transform /rotator accidentally setted?

avatar image BonzoFSP Jun 06 '18 at 08:59 PM

RE: Eject: Ejecting results in the the mesh becoming visible. (No change in view position.) Lengthened the spring arm to 400. No change.

Attached is the troubleshooting project. Steps to repeat:

  1. Open the project. (Will open the troubleshooting level.)

  2. Note PlayerX and PlayerX2. (PlayerX will be auto-possessed by player.)

  3. Click play. PlayerX will disappear.

link text

avatar image BladeMaster Jun 06 '18 at 09:22 PM

In the PlayerX Blueprint, click on the "MeshComponent". Turn "Owner No See" to False. You will see the sphere. alt text

ss4.png (6.4 kB)
avatar image BonzoFSP Jun 06 '18 at 09:44 PM

Dang it. I knew I spotting a setting like that a couple days ago. But then I could not remember the name and decided I was mistaken. Thanks much BladeMaster.

avatar image BladeMaster Jun 06 '18 at 10:11 PM

You are welcome!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Answer credit is to BladeMaster. (See the question's comments.)

The DefaultPawn's MeshComponent is configured to be hidden when possessed by the player. So the behavior is as expected with the pawn's default settings. To change this behavior set "Owner No See" to false. It is located under the MeshComponent's Rendering section. If you browse manually, you'll need to expand the section to show all options. Or you can get to it quickly by searching for "owner". (See the example provided by BladeMaster.)

more ▼

answered Jun 07 '18 at 03:15 PM

avatar image

BonzoFSP
16 3 4 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question