Class FieldUpdater
Used for updating many fields at once on GameObjects
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
[CreateAssetMenu(fileName = "FieldUpdater", menuName = "WeaverCore/Field Updater")]
public class FieldUpdater : ScriptableObject
Properties
| Edit this page View SourceFields
Declaration
public FieldUpdater.UpdatedFieldListView Fields { get; }
Property Value
Type | Description |
---|---|
FieldUpdater.UpdatedFieldListView |
Methods
| Edit this page View SourceApplyToObject(GameObject, bool)
Applies the Field Updater to a UnityEngine.GameObject.
Declaration
public void ApplyToObject(GameObject obj, bool throwOnError = true)
Parameters
Type | Name | Description |
---|---|---|
GameObject | obj | The object to have its component fields changed. |
bool | throwOnError | If set to true, then this function will throw an exception if a field could not be set, or a component is missing. |
GetFieldValue(UpdatedField)
Declaration
public object GetFieldValue(FieldUpdater.UpdatedField field)
Parameters
Type | Name | Description |
---|---|---|
FieldUpdater.UpdatedField | field |
Returns
Type | Description |
---|---|
object |