Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Network serialization API to watch hookstate changes #8538

Open
1 task
Griffisaurus opened this issue Aug 21, 2023 · 2 comments · May be fixed by #9478
Open
1 task

Network serialization API to watch hookstate changes #8538

Griffisaurus opened this issue Aug 21, 2023 · 2 comments · May be fixed by #9478
Assignees

Comments

@Griffisaurus
Copy link
Member

Recording/Network serialization has API to watch hookstate changes on components & entities

  • Prereqs: entity types & getComponent is read only
@speigg
Copy link
Member

speigg commented Oct 13, 2023

This should enable a much simplified interface for networked objects:

const entity = spawnEntity() // creates entity w/ NetworkObjectComponent w/ current user as owner
setComponent(entity, IKTargetComponent, {name:'leftFoot', blendWeight: 1})

@HexaField
Copy link
Member

HexaField commented Dec 5, 2023

something like this

/**
 * visible is implied if src or mesh are populated
 * network is implied and owner & author is the spawner user/peer
 */
const entity = spawnEntity({
  uuid,
  name,
  parent?,
  position?,
  rotation?,
  src | mesh?,
  collider?
})

@HexaField HexaField linked a pull request Dec 20, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants