-
Notifications
You must be signed in to change notification settings - Fork 7
Coding_Standard
Jack Brett edited this page Jun 13, 2024
·
4 revisions
The LUTE coding standard is meticulously crafted to ensure that the source code is both comprehensible for users and straightforward for contributors to maintain.
using UnityEngine;
/// <summary>
/// Description of the component.
/// </summary>
public class MyComponent : MonoBehaviour
{
[Tooltip("Tooltip comment displayed in the editor.")]
[SerializeField] protected float myProperty = 10f;
protected virtual void MyMethod(){ }
/// <summary>
/// Documentation comment for public property.
/// </summary>
public virtual float MyProperty { get; set; }
/// <summary>
/// Documentation comment for public method that can be overrided.
/// </summary>
public virtual void DoSomething()
{
}
}