DataConsumerCollection.UpdatePrefabDataConsumers(GameObject, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Update all IDataConsumer components in the prefab GO hierarchy.
protected void UpdatePrefabDataConsumers(UnityEngine.GameObject prefab, string collectionItemKeyPathPrefix);
member this.UpdatePrefabDataConsumers : UnityEngine.GameObject * string -> unit
Protected Sub UpdatePrefabDataConsumers (prefab As GameObject, collectionItemKeyPathPrefix As String)
Parameters
- prefab
- UnityEngine.GameObject
The prefab game object to update.
- collectionItemKeyPathPrefix
- String
The Keypath prefix associated with this collection.
Remarks
Make sure the data consumers in a view prefab are associated with the correct keypath and the datasource that will provide data.