Метод | Описание | |
---|---|---|
AffectsObject ( Component cmp ) : bool |
Returns whether a specific object is affected by this PrefabLink.
|
|
AffectsObject ( GameObject obj ) : bool |
Returns whether a specific object is affected by this PrefabLink.
|
|
Apply ( ) : void |
Applies both Prefab and change list to this PrefabLinks GameObject.
|
|
ApplyAllLinks ( IEnumerable |
Applies all PrefabLinks in a set of GameObjects.
|
|
ApplyChanges ( ) : void |
Applies this PrefabLinks change list to its GameObject. This will restore all deliberate modifications (made in the editor) of the GameObjects Properties after linking it to the Prefab.
|
|
ApplyPrefab ( ) : void |
Applies the Prefab to this PrefabLinks GameObject. This will overwrite all of its existing data and establish the state as defined in the Prefab.
|
|
ClearChanges ( ) : void |
Clears the change list.
|
|
ClearChanges ( GameObject targetObj, |
Clears the change list for certain objects
|
|
Clone ( ) : |
Clones the PrefabLink.
|
|
Clone ( GameObject newObj ) : |
Clones the PrefabLink, but targets a different GameObject.
|
|
Clone ( GameObject newObj, ContentRef |
Clones the PrefabLink, but targets a different GameObject and Prefab.
|
|
HasChange ( object target, |
Returns whether there is a specific change list entry.
|
|
PopChange ( object target, |
Removes an existing change list entry.
|
|
PrefabLink ( GameObject obj, ContentRef |
Creates a new PrefabLink, connecting a GameObject to a Prefab.
|
|
PushChange ( object target, |
Creates a new change list entry.
|
|
PushChange ( object target, |
Creates a new change list entry.
|
|
RelocateChanges ( |
Relocates the internal change list from this PrefabLink to a different, hierarchially lower PrefabLink. In general, each PrefabLink is responsible for all hierarchially lower GameObjects. If one of them has a PrefabLink on its own, then the higher PrefabLinks responsibility ends there. Change relocation is done when linking an existing GameObject to a Prefab although it is already affected by a hierarchially higher PrefabLink. In order to prevent both PrefabLinks to interfere with each other, all higher PrefabLink change list entries referring to that GameObject are relocated to the new, lower PrefabLink that is specifically targetting it. This way, the above responsibility guideline remains applicable. |
|
UpdateChanges ( ) : void |
Updates all existing change list entries by the GameObjects current Property values.
|
Метод | Описание | |
---|---|---|
Apply ( bool deep ) : void | ||
ClearEmptyChanges ( ) : void | ||
ICloneExplicit ( object targetObj, CloneProvider provider ) : void | ||
PopChange ( IEnumerable |
||
PrefabLink ( ) : System |
public AffectsObject ( Component cmp ) : bool | ||
cmp | Component | |
Результат | bool |
public AffectsObject ( GameObject obj ) : bool | ||
obj | GameObject | |
Результат | bool |
public static ApplyAllLinks ( IEnumerable |
||
objEnum | IEnumerable |
An enumeration of all GameObjects containing PrefabLinks that are to |
predicate | Predicate |
An optional predicate. If set, only PrefabLinks meeting its requirements are applied. |
Результат | List |
public ClearChanges ( GameObject targetObj, |
||
targetObj | GameObject | |
cmpType | ||
prop | ||
Результат | void |
public Clone ( GameObject newObj ) : |
||
newObj | GameObject | The GameObject which the clone is connected to. |
Результат |
public Clone ( GameObject newObj, ContentRef |
||
newObj | GameObject | The GameObject which the clone is connected to. |
newPrefab | ContentRef |
The Prefab which the clone will connect its GameObject to. |
Результат |
public HasChange ( object target, |
||
target | object | The target object in which the change has been made. Must be a GameObject or Component. |
prop | The target objects |
|
Результат | bool |
public PopChange ( object target, |
||
target | object | The target object in which the change has been made. Must be a GameObject or Component. |
prop | The target objects |
|
Результат | void |
public PrefabLink ( GameObject obj, ContentRef |
||
obj | GameObject | The GameObject to link. |
prefab | ContentRef |
The Prefab to connect the GameObject with. |
Результат | System |
public PushChange ( object target, |
||
target | object | The target object in which the change has been made. Must be a GameObject or Component. |
prop | The target objects |
|
Результат | void |
public PushChange ( object target, |
||
target | object | The target object in which the change has been made. Must be a GameObject or Component. |
prop | The target objects |
|
value | object | The value to which the specified Property has been changed to. |
Результат | void |
public RelocateChanges ( |
||
other | /// The PrefabLink to which to relocate changes. It needs to be hierarchially lower than /// this one for the relocation to succeed. /// | |
Результат | void |