public VrcParameterDefinition(AvatarDefinition parent, string name, ParameterValueType type) : base(parent, name) { Parent = parent; Parameters = parent.VrcExpressionParameters; Type = type; Name = name; }
public VrcParameterDefinition Create(AvatarDefinition parent, string name, ParameterValueType type) { if (!_parameterCache.TryGetValue(name, out var instance)) { instance = new VrcParameterDefinition(parent, name, type); _parameterCache[name] = instance; } return(instance); }
public VrcParameterDefinition Create(AvatarDefinition parent, VRCExpressionParameters.Parameter parameter) { return(Create(parent, parameter.name, GetParameterType(parameter))); }