Download Runtime/SceneItem.cs from ErenAta00/Maverick-Unity: direct link, hf CLI and curl.
- Browser
- Download file 1.86 kB
-
https://huggingface.co/ErenAta00/Maverick-Unity/resolve/main/Runtime/SceneItem.cs
- Command line
-
hf download hf://ErenAta00/Maverick-Unity/Runtime/SceneItem.cs
-
curl -L -o SceneItem.cs https://huggingface.co/ErenAta00/Maverick-Unity/resolve/main/Runtime/SceneItem.cs
1.86 kB
| using UnityEngine; | |
| namespace SceneAgent | |
| { | |
| /// <summary>Marks a GameObject as addressable by the agent. Ids must be unique and stable.</summary> | |
| public class SceneItem : MonoBehaviour | |
| { | |
| public string itemId; | |
| public string label; // cube, mug, table, lamp, door, button, ... | |
| public string color; // optional | |
| public string room; | |
| public string on = "floor"; // support id, "floor", "left_hand", "right_hand" or "both_hands" | |
| public string relation; // "on" / "in" once placed | |
| public string orientation; // set by place(); null = default | |
| public string state; // for devices: on/off/open/closed/... | |
| public bool hasPos = true; | |
| public double[] pos = new double[3]; // logical position (bottom of the object), metres | |
| public double yaw, pitch, roll; | |
| [] | |
| [ | |
| ] | |
| public bool overrideAffordances; | |
| public bool grabbable; | |
| [] | |
| public bool isSurface; | |
| public float surfaceHeight = 0.75f; | |
| [] | |
| public bool isContainer; | |
| [] | |
| public bool isFixed; | |
| public bool isButton; | |
| [] | |
| public string[] states = new string[0]; | |
| } | |
| } | |