Class DescriptorProvider
Inheritance
DescriptorProvider
Syntax
public sealed class DescriptorProvider : SingleDecoratorProvider<object, IDescriptor, DescriptorAttribute>, IDisposable
Properties
cache
Declaration
protected override bool cache { get; }
Property Value
Overrides
Unity.VisualScripting.SingleDecoratorProvider<System.Object, Unity.VisualScripting.IDescriptor, Unity.VisualScripting.DescriptorAttribute>.cache
instance
Declaration
public static DescriptorProvider instance { get; }
Property Value
Methods
AddListener(Object, Action)
Declaration
public void AddListener(object describable, Action onDescriptionChange)
Parameters
Type |
Name |
Description |
Object |
describable |
|
Action |
onDescriptionChange |
|
ClearListeners()
Declaration
public void ClearListeners()
Describe(Object)
Declaration
public void Describe(object describable)
Parameters
Type |
Name |
Description |
Object |
describable |
|
DescribeAll()
Declaration
public void DescribeAll()
Description(Object)
Declaration
public IDescription Description(object target)
Parameters
Type |
Name |
Description |
Object |
target |
|
Returns
Description<TDescription>(Object)
Declaration
public TDescription Description<TDescription>(object target)
where TDescription : IDescription
Parameters
Type |
Name |
Description |
Object |
target |
|
Returns
Type |
Description |
TDescription |
|
Type Parameters
Name |
Description |
TDescription |
|
Descriptor(Object)
Declaration
public IDescriptor Descriptor(object target)
Parameters
Type |
Name |
Description |
Object |
target |
|
Returns
Descriptor<TDescriptor>(Object)
Declaration
public TDescriptor Descriptor<TDescriptor>(object target)
where TDescriptor : IDescriptor
Parameters
Type |
Name |
Description |
Object |
target |
|
Returns
Type |
Description |
TDescriptor |
|
Type Parameters
Name |
Description |
TDescriptor |
|
Dispose()
Declaration
IsValid(Object)
Declaration
public override bool IsValid(object described)
Parameters
Type |
Name |
Description |
Object |
described |
|
Returns
Overrides
Unity.VisualScripting.SingleDecoratorProvider<System.Object, Unity.VisualScripting.IDescriptor, Unity.VisualScripting.DescriptorAttribute>.IsValid(System.Object)
RemoveListener(Object, Action)
Declaration
public void RemoveListener(object describable, Action onDescriptionChange)
Parameters
Type |
Name |
Description |
Object |
describable |
|
Action |
onDescriptionChange |
|
TriggerDescriptionChange(Object)
Declaration
public void TriggerDescriptionChange(object describable)
Parameters
Type |
Name |
Description |
Object |
describable |
|
Extension Methods