LoginSignup
10
8

More than 5 years have passed since last update.

Unity+Riderのすすめ ~Context ActionでSerializeFieldを爆速で!~

Last updated at Posted at 2018-06-12

RiderのContext Actionを使えば、SerializeFieldを爆速で書くことができます。

Context Actionは、

Mac : ⌥ + Enter 
Win : Alt+Enter

で実行できます。

まずは、フィールドにSerializeField属性を付ける例。

serialized.gif

次は自動実装プロパティを、SerializeField属性つきのバッキングフィールドに変換する例。

property.gif

最後にNonSerialize属性をつける例。

nonserialized.gif

MonoBehaviourやScriptableObjectのサブクラスでないとできませんが、便利!

10
8
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
10
8