2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Unity 6.5でUnityEngine.GraphicsクラスにRenderSpriteメソッド・RenderSpriteInstancedメソッドが追加される

2
Last updated at Posted at 2026-04-19

Unity 6.5でUnityEngine.Graphicsクラスに対して、RenderSpriteメソッドとRenderSpriteInstancedメソッドが追加されるようです。

※ 本投稿執筆時のUnity 6.5はまだ正式リリースされておらず、beta4段階です。今後の変更に注意してください。

リリースノートにおける該当部分はこちら。

2D: Added: Added overloads for RenderSpriteInstanced to support List, NativeArray, and ReadOnlySpan.

2D: Added: Added RenderSprite and RenderSpriteInstanced scripting APIs.

Graphics.RenderSpriteのスクリプトリファレンスはこちら。

Graphics.RenderSpriteInstancedのスクリプトリファレンスはこちら。

またこれらのメソッドに利用する、SpriteParams構造体もUnity 6.5で追加されます。

Graphics.RenderSpriteのスクリプトリファレンスによると、このメソッドは「GameObjectを作成および管理せず、プログラムによってスプライトのレンダリングを制御するため」に使うようです。

Use RenderSprite to control sprite rendering programmatically without the need to create and manage GameObjects. RenderSprite submits the sprite for rendering, which means it doesn't render the sprite immediately. Unity renders the sprite as part of normal rendering process, and is compatible with SRP Batcher and GPU Instancing.

Shadowは未サポートのようですが、LightとMaskは利用可能。そしてRenderParams型を使って表示するカメラやレイヤーを指定することもできそうです。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?