4 [
Attribute(
"", UIWidgets.ResourceNamePicker,
"Prefab",
"et")]
5 ResourceName m_PlaceablePrefab;
7 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
9 Print(
"CanBeShown condition method not overridden for action, action won't show", LogLevel.WARNING);
13 override bool CanBePerformed(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
18 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
42 bool GetPrefab(out ResourceName prefab)
44 prefab = m_PlaceablePrefab;
45 return !m_PlaceablePrefab.IsEmpty();