diff --git a/Assets/Scripts/API/ApiMethods.cs b/Assets/Scripts/API/ApiMethods.cs index 76cf948887..e26f998419 100644 --- a/Assets/Scripts/API/ApiMethods.cs +++ b/Assets/Scripts/API/ApiMethods.cs @@ -468,6 +468,16 @@ public static ImageWidget ImportImage(string location) return imageWidget; } + [ApiEndpoint( + "image.extrude", + "Sets an image to be extruded by a given depth and color. Set depth to 0 to remove extrusion.", + "0.5, 0.5, 0.5, 1")] + public static void ExtrudeImage(int index, float depth, Color color) + { + var imageWidget = _GetActiveImage(index); + imageWidget.SetExtrusion(depth, color); + } + [ApiEndpoint("environment.type", "Sets the current environment")] public static void SetEnvironment(string name) {