ActorProfilePictureRequest

Actor Service

Class

The result of a request to get an actor's profile picture.

Inheritance

SpatialAsyncOperation
ActorProfilePictureRequest

Properties

actorNumber

The actor number of the actor that the profile picture is for.

succeeded

Was the request successful?

texture

The profile picture texture for the actor. Null if the actor or texture could not be found.

Inherited Members

InvokeCompletionEvent()

Invokes the completion event.

completed

Event that is invoked when the operation is completed.

isDone

Returns true if the operation is done.

keepWaiting

Returns true if the operation is not done.

Extension Methods

SetCompletedEvent<T>(T, Action<T>)

Sets the completion event, same as setting the event using the completed property, but returns the operation itself.

Examples

public RawImage profilePicture;
public Image profilePictureBackground;

public void SetProfilePicture()
{
SpatialBridge.actorService.localActor.GetProfilePicture().SetCompletedEvent((request) => {
profilePicture.texture = request.texture;
});
profilePictureBackground.color = SpatialBridge.actorService.localActor.profileColor;
}
public RawImage profilePicture;
public Image profilePictureBackground;

public void SetProfilePicture()
{
SpatialBridge.actorService.localActor.GetProfilePicture().SetCompletedEvent((request) => {
profilePicture.texture = request.texture;
});
profilePictureBackground.color = SpatialBridge.actorService.localActor.profileColor;
}