# Camera Near Clip Plane

[Rendering](../index.md) / [Camera](index.md) / **Camera Near Clip Plane**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :green_circle: Can Write

</div>

## Description

The Near Clip Plane property of the Camera component

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Rendering;

namespace VisualScript.Runtime
{
    [Get]
    [Set]
    
    [Title("Camera Near Clip Plane")]
    [Category("Rendering/Camera/Near Clip Plane")]
    [Description("The Near Clip Plane property of the Camera component")]
    
    [Image(typeof(IconCamera), ColorTheme.Type.Blue)]
    
    [Serializable]
    public class GenTypeNumber_Camera_NearClipPlane : TypeNumber
    {
        [SerializeField] private GetGameObject m_Camera = new GetGameObject(
            new GenTypeGameObject_Camera()
        );
        
        public override double GetPreview(GameObject source)
        {
            GameObject instance = this.m_Camera.GetPreview(source);
            if (instance == null) return default;
            
            Camera component = instance.GetComponent<Camera>();
            return component != null ? component.nearClipPlane : default;
        }
        
        public override double Get(Args args)
        {
            Camera instance = this.m_Camera.Get<Camera>(args);
            return instance != null
                ? instance.nearClipPlane
                : default;
        }
        
        public override void Set(double value, Args args)
        {
            Camera component = this.m_Camera.Get<Camera>(args);
            if (component != null) component.nearClipPlane = (float) value;
        }
        
        public override string ToString()
        {
            return $"{this.m_Camera} Near Clip Plane";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}


```

