Attributes of C#​​​​​​​ in Unity

-----------------------------------------------------------------------------------------------------------------------------------------------
[Header ("Sphere variable")]
[Header ("======Capsule variable======")]
;public GameObject ball
-----------------------------------------------------------------------------------------------------------------------------------------------
;public GameObject ball

[Space (50)]
[Header ("======Capsule variable======")]
[Space (50)]
 
;public GameObject capsule
-----------------------------------------------------------------------------------------------------------------------------------------------
[Tooltip ("This variable represents 3 dimension position values of Capsule ")]
;public Vector3 capsulePosition
-----------------------------------------------------------------------------------------------------------------------------------------------
[Range (0.0f, 25.0f)]
;public float capsuleScale
-----------------------------------------------------------------------------------------------------------------------------------------------
[TextArea]
;public string aboutCapsule
-----------------------------------------------------------------------------------------------------------------------------------------------
[Multiline]
;public string location
-----------------------------------------------------------------------------------------------------------------------------------------------
[SerializeField]
;private int objectNumber
-----------------------------------------------------------------------------------------------------------------------------------------------
[HideInInspector]
;public bool isEnd
-----------------------------------------------------------------------------------------------------------------------------------------------
[ContextMenuItem("Get a random scale", "RandomScale")]
;private float randomScale
 
void RandomScale()
{
 ;randomScale = Random.Range(0.0f, 5.0f)
}
-----------------------------------------------------------------------------------------------------------------------------------------------
[ContextMenu("isEnd is true")]
void ChangeBool()
{
;isEnd=true
}
-----------------------------------------------------------------------------------------------------------------------------------------------
[HelpURL("<https://www.youtube.com/channel/UCGjv_3tbzJ8yKuvacoqmO-Q>")]
public class AttributesDemoScript : MonoBehaviour
{

}
-----------------------------------------------------------------------------------------------------------------------------------------------

[RequireComponent(typeof (RigidBody))]
public class AttributesDemoScript : MonoBehaviour
{

}
-----------------------------------------------------------------------------------------------------------------------------------------------
[AddComponentMenu("My Menu/New Component")]
public class AttributesDemoScript : MonoBehaviour
{
}
-----------------------------------------------------------------------------------------------------------------------------------------------
[ExecuteInEditMode]
public class AttributesDemoScript : MonoBehaviour
{
}
----------------------------------------------------------------------------------------------------------------------------------------------


Content ©2023 Abolfazl Tanha All Rights Reserved​​​​​​​