CSharp Questions
13
Solved
This problem is oddly specific so bear with me. While learning Godot, I'm making a simple turn-based RPG game. When the player triggers a random encounter, they are switched to the Battle scene. Eithe...
Tater asked 25/10, 2023 at 16:47
2
So I am using ArrayMeshes to procedurally generate terrain. I am trying to add LOD support, and I am compiling the index arrays and passing them in like so:
'
surfaceArray[(int)Mesh.ArrayType.Vertex...
Gath asked 25/10, 2023 at 20:52
7
.
Atomy asked 22/10, 2023 at 15:26
20
Hi I’ve had a quick scout and I can’t find anything quite what I’m looking for but if there are forum posts already like what I’m about to ask then I do apologize and please point me in that direction...
Apia asked 19/10, 2023 at 13:24
8
Solved
Hi, I'm trying to rotate a CharacterBody3D (altering the Transform.Basis) and also move it forward (with MoveAndCollide) with the following code:
public override void _PhysicsProcess(double delta) {
...
Disband asked 21/10, 2023 at 23:27
1
Ive got this Working in the inspector but it won't serialize when I save and reopen the project.
Base Class:
`public partial class Dict< [ MustBeVariant ] TKey, [ MustBeVariant ] TValue > : Res...
Sierrasiesser asked 19/10, 2023 at 0:8
1
When I call this function, the camera rotates correctly around the X axis. However, when I try to move the camera up and down by dragging the mouse along the Y axis, the camera moves in the Z axis ins...
Blague asked 14/10, 2023 at 19:20
3
In Godot, when you hold down the Shift key and press the middle mouse button and drag the mouse, you move around the world in a sliding motion. I want to do this kind of movement with the camera. How ...
Crust asked 10/10, 2023 at 10:26
2
I am dynamically generating an ArrayMesh in my script and have an issue with Normal Maps. Basically my Normal Map has flipped X and Y values. That is, the Red channel is affecting the UV Y axis and th...
Freyah asked 12/10, 2023 at 19:50
19
I want to adjust the size of the plane mesh according to the camera view in the 3D scene, that is, how big an area does the camera see in x and z coordinates, how do I calculate this or is there a rea...
Bridegroom asked 7/10, 2023 at 7:27
8
Is there a way to show the properties of a custom class in the Inspector using _GetPropertyList()?
The Dictionary _get_property_list ( ) virtual example works, but not with a custom class. What could...
Ptah asked 7/10, 2023 at 15:6
2
Solved
I have this control node that has an EnemyData.tres resource in it
and i want to replace it with an EnemyData2.tres, and i want to
be able to replace it with the EnemyData.tres while the game
is runni...
Doddering asked 4/10, 2023 at 14:59
1
I'm using https://docs.godotengine.org/en/stable/classes/class_mainloop.html as a template and have created this very simple custom MainLoop class called Entry in the file res://src/Entry.cs:
public p...
Firstrate asked 13/4, 2023 at 3:20
4
Hi all!
I'm having issues exporting resources inside resources with C#. ItemResource exports WeaponResource but the WeaponResource is always null even though the WeaponResource is assigned in the ins...
Nuthouse asked 3/10, 2023 at 17:43
3
In GDScript, one can do the following to set the dimensions of a BoxMesh.
var _box_mesh: BoxMesh = BoxMesh.new()
_box_mesh.size = Vector3(SCALE, SCALE, SCALE)
In C#, when creating a BoxMesh we obtai...
Womanish asked 4/10, 2023 at 11:43
9
Solved
Hi all, I'm trying to use a custom signal in C# but I'm having some problems.
I have a class NoteHandler that defines a signal ShowNote. It looks like this:
public partial class NoteHandler : Node2D
...
Soulless asked 10/4, 2023 at 16:31
3
I have an area with 2 signals connected to the GUI node.
When signal body_entered() tries to call the function bumpObjective() i get an error.
Weirdly enough when i call the function addObjective() wi...
Warhol asked 26/9, 2023 at 6:15
1
Since apparently no one else in the entire world has run into this issue, figured it'd be a good idea to make a post about it. I recently installed Visual Studio Code, installed the necessary extensio...
Saraband asked 26/9, 2023 at 2:13
2
Solved
I made a resource and attached a script to it. The script has exported values set.
But i don't know how to use the values in another script.
Peacoat asked 26/9, 2023 at 11:52
2
I am currently using Godot 4.1.1 stable Mono version(C#). When I tried to Export “PackedScene”, it did not appear in the Inspector Panel. Any ideas why ?
Misprint asked 24/9, 2023 at 15:25
1
Hello, I'm currently learing to use the Godot engine, I have Prior knowledge in Software development, that's why I went with c# over GDScript, since I have know a bit of c# already and didn't want to ...
Splenomegaly asked 24/9, 2023 at 9:59
5
I started trying #Godot 4.1 with C#.
I've been making a demo game in Unity for the past 2 years (slowly progressing). (https://www.youtube.com/watch?v=chhWIbNtvzw)
IP ownership covers the world and ch...
Pressurize asked 23/9, 2023 at 12:40
4
I am updating my procedural generation project from Unity. However, some of my logic uses Quaternion.FromToRotation (which Godot doesn't have). I am currently using Godot 4.1.1.
This is the current i...
Weems asked 22/9, 2023 at 23:4
4
Currently trying to make a progress bar go up over 1 second, only path I seem to know how of doing this is by doing:
Variable = time
min value = variable
max value = variable+1
while ( variable &...
Modulus asked 20/9, 2023 at 21:23
5
Hi. I have a class which reads a JSON file and stores the information into a list, this class is used as a sort of database where all information is loaded into it on game start so it is easily change...
Watery asked 20/9, 2023 at 1:14
© 2022 - 2025 — McMap. All rights reserved.