private Vector4 internalCurrentWorldColor = null;
private Vector2 internalCurrentScreenPosition = null;
+ private static int aliveCount = 0;
+
static View()
{
RegisterPropertyGroup(PositionProperty, positionPropertyGroup);
{
SetVisible(false);
}
+
+ aliveCount++;
}
internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.NewViewInternal(ViewImpl.getCPtr(implementation)), true)
[EditorBrowsable(EditorBrowsableState.Never)]
public Vector3 CurrentScale => GetCurrentScale();
+ /// <summary>
+ /// Gets the number of currently alived View object.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static int AliveCount => aliveCount;
+
}
}