文档

Unity Engine

Download Unity

Unity Engine

SetSharedComponent<T>(Entity, T)

Sets the value of a shared component of an entity.
阅读时间1 分钟最后更新于 1 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static void SetSharedComponent<T>(Entity entity, T componentData) where T : unmanaged, ISharedComponentData

Parameters

entity

The entity.

componentData

T
The new value.

Remarks

This is a structural change.