---
tags:
    - "Target"
---

# Target

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The Target game object the calling object targets

## Code

```cs
using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Target")]
    [Category("Target")]
    
    [Description("The Target game object the calling object targets")]
    [Image(typeof(IconTarget), ColorTheme.Type.Yellow)]
    
    [Keywords("Target")]
    
    [Serializable]
    public class TypeGameObjectTarget : TypeGameObject
    {
        public override GameObject Get(Args args)
        {
            return args.Target;
        }

        public static GetGameObject Create()
        {
            TypeGameObjectTarget instance = new TypeGameObjectTarget();
            return new GetGameObject(instance);
        }
        
        public override string ToString()
        {
            return "Target";
        }
    }
}
```

