Skip to content

[BUG]: SpawnableCullingParent.Create - transform position is not set #247

@Axwabo

Description

@Axwabo

Before You Report

  • I have searched for existing reports of this bug, and this bug report is unique.

Version

1.1.1

Description

SpawnableCullingParent.Create doesn't set the transform position, therefore the waypoint is effectively void (pun intended :trollface:).
Additionally, the Position and Size properties are not using the Network properties, causing desync if they are modified.

To Reproduce

SpawnableCullingParent.Create(Vector.up * 300, Vector3.one * 100);

Expected Behavior

A waypoint is spawned on Surface with a size of (100, 100, 100).
The transform position should be set to (0, 300, 0) and players should be able to move relative to the waypoint.

Additional Information

The Position property should set Base.NetworkBoundsPosition while Scale should set Base.NetworkBoundsSize

Two ways to fix Create:

  1. Pass the position to Object.Instantiate
  2. Set the NetworkBoundsPosition instead of BoundsPosition

From the message in #plugins-discussion:

Image Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions