godot/modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs
2018-08-23 12:50:04 -04:00

17 lines
387 B
C#

using System;
namespace Godot
{
public partial class Object
{
public static bool IsInstanceValid(Object instance)
{
return instance != null && instance.NativeInstance != IntPtr.Zero;
}
public static WeakRef WeakRef(Object obj)
{
return NativeCalls.godot_icall_Godot_weakref(Object.GetPtr(obj));
}
}
}