GetComponentInPrefabRootAttribute
A class in Root.Township, the global namespace.
Like GetComponentAttribute, but takes the component from the root NetworkPrefab object above the field's object.
- Listed in Global namespace: E to H
- Inherits or implements
GetComponentAttribute
Constructors
| Member | What it is |
|---|---|
GetComponentInPrefabRootAttribute() | Creates a GetComponentInPrefabRootAttribute with default values. |
Methods
| Member | What it is |
|---|---|
override Component GetComponent(Transform transform, Type type) | Finds the nearest NetworkPrefab in the parents and gets the component from it, or null. |