/// <summary> /// Set sprite. /// </summary> private void SetSprite(Sprite2D sprite) { Runtime.ValidateRefCounted(this); ParticleEmitter2D_SetSprite(handle, (object)sprite == null ? IntPtr.Zero : sprite.Handle); }
/// <summary> /// Save sprite to ResourceRef. /// </summary> public static ResourceRef SaveToResourceRef(Sprite2D sprite) { Runtime.Validate(typeof(Sprite2D)); return(Sprite2D_SaveToResourceRef((object)sprite == null ? IntPtr.Zero : sprite.Handle)); }