Skip to content
Discussion options

You must be logged in to vote

Issues has been solved.

I've discovered that SpawnAvatarRequest is a child of SpatialAsyncOperation Class

Updated Code:
`

    if (!hasSpawnedHostess)
    {
      
        var spawnAvatarRequest = SpatialBridge.spaceContentService.SpawnAvatar(
            AssetType.EmbeddedAsset,
            "hostess_avatar",
            new Vector3(0f, 0f, 0f),
            Quaternion.identity,
            "hostess"
        );
       
        spawnAvatarRequest.completed += operation =>
        {
            var spawnResult = operation as SpawnAvatarRequest;

            if (spawnResult != null && spawnResult.avatar != null)
            {
                hostess_avatar = spawnResult.avatar;
               …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Zhey-on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant