---
tags:
    - "Source"
    - "Self"
---

# Source

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The Local Variable attached to the Source game object making the call

## Code

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

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Source")]
    [Category("Source")]
    
    [Description("The Local Variable attached to the Source game object making the call")]
    [Image(typeof(IconSource), ColorTheme.Type.Yellow)]
    
    [Keywords("Source", "Self")]
    
    [Serializable]
    public class TypeVariableSource : TypeVariable
    {
        public override Variable Get(Args args)
        {
            return args.SourceComponent<LocalVariable>();
        }

        public override string ToString()
        {
            return "Source";
        }
    }
}
```

