简体   繁体   中英

Child Objects of LocalPlayer is not localplayer?

在此处输入图片说明

In the screenshot the PlayerPrefab is the gameobject that is spawned when a player connects the server. So the root gameobject ie PlayerPrefab has the localplayer authority. Where in the child objects the localplayerauthority is checked and still they show "isLocalPlayer" as false in the console.

So the child gameobjects are not considered as localplayer. How to solve this issue? Pls Help!

I think you are confused on what Authority is and what isLocalPlayer is. Local Player Authority means that the player is able to control that object and make changes to it over the server. isLocalPlayer is just a check that is done to see if the entity performing the operation is the player or not (ie server).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM