How does this js script to change the c # script?

js----

class CharacterMotorMovement {
	var maxForwardSpeed : float = 10.0;
	var maxSidewaysSpeed : float = 10.0;
	var maxBackwardsSpeed : float = 10.0;
}

var movement : CharacterMotorMovement = CharacterMotorMovement();

function Update () {
}

c# Why in the inspector view there are no movement?

using UnityEngine;
using System.Collections;

public class testScript : MonoBehaviour {
	public class CharacterMotorMovement {
		public float maxForwardSpeed = 10.0f;
		public float maxSidewaysSpeed = 10.0f;
		public float maxBackwardsSpeed = 10.0f;
	}

	public CharacterMotorMovement movement = new CharacterMotorMovement();

	void  Update (){
	}
}

Figure…

624563--22237--$myQ1.png

You need to make your class serializable:

using UnityEngine;
using System.Collections;

public class testScript : MonoBehaviour {
        [B][System.Serializable][/B]
	public class CharacterMotorMovement {
		public float maxForwardSpeed = 10.0f;
		public float maxSidewaysSpeed = 10.0f;
		public float maxBackwardsSpeed = 10.0f;
	}

	public CharacterMotorMovement movement = new CharacterMotorMovement();

	void  Update (){
	}
}

Wow. . Thank you very much. .:slight_smile: