Click or drag to resize

ASLObjectSendAndSetTag Method

Send and set the tag for this object for all users. As Unity does not all users to create tags at runtime, all players must have this tag defined

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void SendAndSetTag(
	string _tag,
	GameLiftManagerOpFunctionCallback _callback = null
)

Parameters

_tag
Type: SystemString
The tag for this object to get
_callback (Optional)
Type: ASLGameLiftManagerOpFunctionCallback
The optional callback function for OpFunction
Examples
void SomeFunction()
{
    //Claim your object first
    gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() =>
    {
        //Send and then set (=) the tag this object should have. Note that the object does not set the tag of this object until
        //it receives the packet from the server, even though it is the  caller of this function.
        gameobject.GetComponent<ASL.ASLObject>().SendAndSetTag("Your Tag Here");
    });
}
See Also