Source#
Can Read
Cannot Write
Description#
The Source game object making the call
Code#
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Get]
[Title("Source")]
[Category("Source")]
[Description("The Source game object making the call")]
[Image(typeof(IconSource), ColorTheme.Type.Yellow)]
[Keywords("Source", "Self")]
[Serializable]
public class TypeGameObjectSource : TypeGameObject
{
public override GameObject GetPreview(GameObject source)
{
return source;
}
public override GameObject Get(Args args)
{
return args.Source;
}
public static GetGameObject Create()
{
TypeGameObjectSource instance = new TypeGameObjectSource();
return new GetGameObject(instance);
}
public override string ToString()
{
return "Source";
}
}
}