Click or drag to resize

ASLObjectDeleteObject Method

Deletes this object for all users

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void DeleteObject(
	GameLiftManagerOpFunctionCallback callback = null
)

Parameters

callback (Optional)
Type: ASLGameLiftManagerOpFunctionCallback
The optional callback function for OpFunction
Examples
void SomeFunction()
{
    //Claim the object first
    gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() =>
    {
        //Once we have it claimed, delete the object
        gameobject.GetComponent<ASL.ASLObject>().DeleteObject();
    });
}
See Also