 | ASLObject.SendAndIncrementWorldPosition Method |
Sends and adds to the world transform of this object for all users
Namespace:
ASL
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic void SendAndIncrementWorldPosition(
Vector3? _position,
GameLiftManager.OpFunctionCallback callback = null
)
Public Sub SendAndIncrementWorldPosition (
_position As Vector3?,
Optional callback As GameLiftManager.OpFunctionCallback = Nothing
)
public:
void SendAndIncrementWorldPosition(
Nullable<Vector3> _position,
GameLiftManager.OpFunctionCallback^ callback = nullptr
)
member SendAndIncrementWorldPosition :
_position : Nullable<Vector3> *
?callback : GameLiftManager.OpFunctionCallback
(* Defaults:
let _callback = defaultArg callback null
*)
-> unit
Parameters
- _position
- Type: System.Nullable<Vector3>
The value to be added to the world position of this object - callback (Optional)
- Type: ASL.GameLiftManager.OpFunctionCallback
The optional callback function for OpFunction
Examplesvoid SomeFunction()
{
gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() =>
{
gameobject.GetComponent<ASL.ASLObject>().SendAndIncrementWorldPosition(new Vector3(1, 2, 5));
});
}
See Also