Interface ITrait
The interface denoting that the container is a trait. Base interface for ITrait<T>.
Namespace: Unity.AI.Planner.DomainLanguage.TraitBased
Syntax
public interface ITrait : IBufferElementData
Methods
SetField(String, Object)
Set a field on the trait (alternative to using reflection)
Declaration
void SetField(string fieldName, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fieldName | Name of the field |
| System.Object | value | Value to set |