smwebsdk.persona._constructor_
Home > @soulmachines/smwebsdk > Persona > (constructor)
Persona.(constructor)
Constructs a new instance of the Persona
class
Signature:
constructor(scene: Scene, personaId: PersonaId);
Parameters
Parameter | Type | Description |
---|---|---|
scene | Scene | The scene the persona resides in |
personaId | PersonaId | The id of the persona as received in a state callback |