Skip to content

Commit

Permalink
Add XRToolsViewport2DIn3D script name. (GodotVR#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolmnixon authored Jul 26, 2024
1 parent f03bbca commit fc664b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/godot-xr-tools/objects/viewport_2d_in_3d.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@tool
class_name XRToolsViewport2DIn3D
extends Node3D


Expand Down Expand Up @@ -121,6 +122,11 @@ var _screen_material : StandardMaterial3D
var _dirty := _DIRTY_ALL


# Add support for is_xr_class on XRTools classes
func is_xr_class(p_name : String) -> bool:
return p_name == "XRToolsViewport2DIn3D"


# Called when the node enters the scene tree for the first time.
func _ready():
is_ready = true
Expand Down

0 comments on commit fc664b9

Please sign in to comment.