Allow readonly and writeonly C# properties to be accessed from GDScript
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Godot.SourceGenerators.Sample
|
||||
{
|
||||
public partial class AllWriteOnly : GodotObject
|
||||
{
|
||||
bool writeonly_backing_field = false;
|
||||
public bool writeonly_property { set => writeonly_backing_field = value; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user