sdhkfgjhksgf
This commit is contained in:
parent
c51757b700
commit
ab1d5b78ea
|
@ -39,4 +39,6 @@ shape = SubResource("SphereShape3D_iyx0m")
|
||||||
|
|
||||||
[node name="XRCamera3D" type="XRCamera3D" parent="."]
|
[node name="XRCamera3D" type="XRCamera3D" parent="."]
|
||||||
|
|
||||||
|
[connection signal="button_pressed" from="LeftHand" to="." method="OnPress"]
|
||||||
|
[connection signal="input_float_changed" from="LeftHand" to="." method="OnFloat"]
|
||||||
[connection signal="profile_changed" from="LeftHand" to="LeftHand" method="OnProfileChanged"]
|
[connection signal="profile_changed" from="LeftHand" to="LeftHand" method="OnProfileChanged"]
|
||||||
|
|
|
@ -55,8 +55,22 @@ public partial class XRHand : XRController3D
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnProfileChange(string name) {
|
public void OnProfileChange(string name)
|
||||||
|
{
|
||||||
GD.Print("Profile changed to:");
|
GD.Print("Profile changed to:");
|
||||||
GD.Print(name);
|
GD.Print(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OnPress(string name)
|
||||||
|
{
|
||||||
|
GD.Print("Button pressed:");
|
||||||
|
GD.Print(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnFloat(string name, float value)
|
||||||
|
{
|
||||||
|
GD.Print("Float input:");
|
||||||
|
GD.Print(name);
|
||||||
|
GD.Print(value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue