Beispiel #1
0
 /// <summary>
 /// Set sprite.
 /// </summary>
 private void SetSprite(Sprite2D sprite)
 {
     Runtime.ValidateRefCounted(this);
     ParticleEmitter2D_SetSprite(handle, (object)sprite == null ? IntPtr.Zero : sprite.Handle);
 }
Beispiel #2
0
 /// <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));
 }