Example #1
0
 /// <summary>
 /// Constructs a <see cref="StringName"/> from the given <paramref name="name"/> string.
 /// </summary>
 /// <param name="name">String to construct the <see cref="StringName"/> from.</param>
 public StringName(string name)
 {
     if (!string.IsNullOrEmpty(name))
     {
         NativeValue          = (godot_string_name.movable)NativeFuncs.godotsharp_string_name_new_from_string(name);
         _weakReferenceToSelf = DisposablesTracker.RegisterDisposable(this);
     }
 }
Example #2
0
 private StringName(godot_string_name nativeValueToOwn)
 {
     NativeValue          = (godot_string_name.movable)nativeValueToOwn;
     _weakReferenceToSelf = DisposablesTracker.RegisterDisposable(this);
 }