The following example shows how you make a property, method, or event (PME) scriptable by applying the ScriptableMemberAttribute immediately before the name of the PME.
|
public class SMT_ScriptableManagedType
{
[ScriptableMember] // This is the preferred syntax
public string GetString()
{ return "abcdefg"; }
[ScriptableMemberAttribute] // This is also acceptable
public string GetString()
{ return "abcdefg"; }
}
|