Skip to content

Commit

Permalink
Update DebugInputField.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
winthos committed Aug 12, 2024
1 parent 9d0a679 commit f4cd5da
Showing 1 changed file with 0 additions and 127 deletions.
127 changes: 0 additions & 127 deletions unity/Assets/Scripts/DebugInputField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2763,39 +2763,6 @@ IEnumerator executeBatch(JArray jActions) {
break;
}

case "initsynth":
{
Dictionary<string, object> action = new Dictionary<string, object>();

action["renderNormalsImage"] = true;
action["renderDepthImage"] = true;
action["renderSemanticSegmentation"] = true;
action["renderInstanceSegmentation"] = true;
action["renderFlowImage"] = true;

// action.ssao = "default";

action["action"] = "Initialize";
ActionDispatcher.Dispatch(AManager, new DynamicServerAction(action));
break;
}

case "atpc":
{
Dictionary<string, object> action = new Dictionary<string, object>()
{
["action"] = "AddThirdPartyCamera",
["position"] = new Vector3(-0.67f, 1.315f, 0.46f),
["rotation"] = new Vector3(0, 180, 0),
["parent"] = "world",
["agentPositionRelativeCoordinates"] = false
};

CurrentActiveController()
.ProcessControlCommand(new DynamicServerAction(action), AManager);
break;
}

case "gvo":
{
Dictionary<string, object> action = new Dictionary<string, object>()
Expand All @@ -2808,100 +2775,6 @@ IEnumerator executeBatch(JArray jActions) {
break;
}

case "utpc":
{
Dictionary<string, object> action = new Dictionary<string, object>()
{
["action"] = "UpdateThirdPartyCamera",
["position"] = new Vector3(2, 2, 2),
["rotation"] = new Vector3(15, 25, 35),
["thirdPartyCameraId"] = 1,
["parent"] = "agent",
["agentPositionRelativeCoordinates"] = true
};

CurrentActiveController()
.ProcessControlCommand(new DynamicServerAction(action), AManager);
break;
}

case "umc":
{
Dictionary<string, object> action = new Dictionary<string, object>()
{
["action"] = "UpdateMainCamera",
["position"] = new Vector3(0.5f, 0.5f, 0.5f),
["rotation"] = new Vector3(15, 25, 35),
["fieldOfView"] = 120f,
//["agentPositionRelativeCoordinates"] = false
};

CurrentActiveController()
.ProcessControlCommand(new DynamicServerAction(action), AManager);
break;
}

case "debugmaincamera":
{
CurrentActiveController().generateMetadataWrapper();
break;
}
case "to":
{
ServerAction action = new ServerAction();
action.action = "TeleportObject";
action.objectId = splitcommand[1];
action.x = float.Parse(splitcommand[2]);
action.y = float.Parse(splitcommand[3]);
action.z = float.Parse(splitcommand[4]);
CurrentActiveController().ProcessControlCommand(action);
break;
}
case "daoot":
{
ServerAction action = new ServerAction();
action.action = "DisableAllObjectsOfType";
action.objectId = splitcommand[1];
CurrentActiveController().ProcessControlCommand(action);
break;
}
case "ctlq":
{
ServerAction action = new ServerAction();
action.action = "ChangeQuality";
action.quality = "Very Low";
CurrentActiveController().ProcessControlCommand(action);
break;
}
case "roco":
{
Dictionary<string, object> action = new Dictionary<string, object>();
action["action"] = "RandomlyOpenCloseObjects";
action["randomSeed"] = (new System.Random()).Next(1, 1000000);
CurrentActiveController().ProcessControlCommand(action);
break;
}
case "crouch":
{
ExecuteAction("Crouch");
break;
}
case "stand":
{
ExecuteAction("Stand");
break;
}

case "remove":
{
Dictionary<string, object> action = new Dictionary<string, object>();
action["action"] = "RemoveFromScene";

if (splitcommand.Length == 2)
{
action["objectId"] = splitcommand[1];
}

case "putxy": {
Dictionary<string, object> action = new Dictionary<string, object>();
action["action"] = "PutObject";
Expand Down

0 comments on commit f4cd5da

Please sign in to comment.