Skip to content

How can I use the Node3DGizmo class? #82654

@unicornlox

Description

@unicornlox

Godot version

mono c# 4.1.1

System information

Deepin os, opengl

Issue description

How can I use the Node3DGizmo class? Where is the source code of this class? I could not use this feature for some reason.

Steps to reproduce

my code:
var gizmo = new Node3DGizmo();
error:
'Node3DGizmo' does not contain a constructor that takes 0 arguments

Minimal reproduction project

using Godot;
using System;

public partial class Gizmo : Node3D
{
	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
		var gizmo = new Node3DGizmo();
		//AddGizmo(gizmo);
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions