LoginSignup
2
2

More than 5 years have passed since last update.

privateやprotectedなフィールドの値をインスペクターから変更できるようにしたい

Last updated at Posted at 2015-09-11

[SerializeField]
シリアライズフィールド属性を指定することで可能みたいです。

Rotator
public class Rotator : MonoBehaviour {

    [SerializeField] private float rotationSpeed;

    // Use this for initialization
    void Start () {
        //rotationSpeed = 10.0f;
    }

}

スクリーンショット 2015-09-11 11.20.14.png

以上

2
2
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
2