Код: Выделить всё
using Godot;
using System;
public partial class PlayerCharacter : Sprite2D
{
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
Sprite2D player = new Sprite2D();
Texture spriteTexture = (Texture)ResourceLoader.Load("res://Main/Assets/ball.png");
player.Texture = (Texture2D)spriteTexture;
player.Position = new Vector2(100, 100);
}
public override void _Process(double delta)
{
}
}

Вот что отображается
Почему мой спрайт не отображается в сцене в движке Godot, хотя я создал его с помощью сценария?>
Подробнее здесь: https://stackoverflow.com/questions/769 ... ough-i-hav
Мобильная версия