Skip to content

Instantly share code, notes, and snippets.

@heppoko
Last active August 24, 2020 23:11
Show Gist options
  • Save heppoko/f8115a8f80785282203f82ed0187e637 to your computer and use it in GitHub Desktop.
Save heppoko/f8115a8f80785282203f82ed0187e637 to your computer and use it in GitHub Desktop.
Unity uGUI 最適化マニアックス(仮)の目次的なメモ

基礎知識

  • Profiler
  • Frame Debugger
  • ガベージコレクション
  • リソースの解放
  • uGUI のソースコード

Canvas

  • Canvas の機能
    • Render Mode
    • Pixel Perfect
    • Sort Order
    • Target Display
    • Additional Shader Channel
  • Canvas の再構築
  • Canvas の GC Alloc
  • CanvasScaler
    • Constant Pixel Size モード
    • Scale With Screen Size
    • Constant Physical Size
  • GraphicRaycaster
    • Ignore Reversed Graphics
    • Blocked Objects
    • Blocking Mask
  • CanvasGroup
  • RectTransform
    • Canvas.ForceUpdateCanvases()
  • Canvas と Sprite の使い分け

Text とフォント

  • フォントテクスチャ生成の仕組み
  • BestFit
  • RichText
  • TextMeshPro
  • Outline
  • Shadow
  • PositionAsUV1

画像

  • Image と RawImage の使い分け
  • Sprite.Create() を避ける
  • テクスチャアトラス作成
  • 9 Slice を活用する
  • 適切な padding サイズ

マスク

  • Mask
  • RectMask2D

ボタン

  • アニメーション

トグル

  • Toggle Group の怪しい挙動

スクロールビュー

  • 要素の再利用
  • ScrollView の端をぼかす

自動レイアウト

  • Content Size Fitter
  • LayoutGroup を避ける

EventSystem

  • InputModule
  • Raycast

レンダリング

  • レンダリングの優先順位
  • オーバードロー
  • シェーダー
  • テクスチャーフォーマット
  • 画面解像度
  • RenderTarget

アニメーション

  • Animator
  • DOTween

OnPopulateMesh を使いこなす

  • Text のカーニング
  • 透明なレイヤー

その他のテクニック

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment