Show / Hide Table of Contents

Class FieldUpdater

Used for updating many fields at once on GameObjects

Inheritance
object
Object
ScriptableObject
FieldUpdater
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance(string)
ScriptableObject.CreateInstance(Type)
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 Source

Fields

Declaration
public FieldUpdater.UpdatedFieldListView Fields { get; }
Property Value
Type Description
FieldUpdater.UpdatedFieldListView

Methods

| Edit this page View Source

ApplyToObject(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.

| Edit this page View Source

GetFieldValue(UpdatedField)

Declaration
public object GetFieldValue(FieldUpdater.UpdatedField field)
Parameters
Type Name Description
FieldUpdater.UpdatedField field
Returns
Type Description
object

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾