This is an editor extension I am working on. I am wanting to make it so that when you press a button on the editor it increases the x postion value by 1.
if(GUILayout.Button("X"))
{
Selection.transforms[0].position.x += 1;
}
Assets/Editor/ObjectBuilderEditor.cs(53,49): error CS1612: Cannot modify a value type return value of `UnityEngine.Transform.position’. Consider storing the value in a temporary variable