Class MovePivotAction
Moves the pivot of an object to the desired location
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.Toolbox
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
public class MovePivotAction : ActionInOut<IList<GameObject>, IList<GameObject>>
Fields
| Name | Description |
|---|---|
| boundingBoxType | Define if the bouding box is define in local or global space |
| position | Define the position to apply to the pivot in the case of a user defined location |
| relativeToCurrent | Define if the pivot location is relative to the current location in the case of a user defined location |
| rotation | Define the rotation to apply to the pivot in the case of a user defined location |
| runOncePerObject | Define if the pivot of each element of the input should be move separatly |
| target | Define where the pivot should be moving |
| targetGameObject | Define object pivot that will be used as a reference in case of setting the pivot from an other object |
| worldSpace | Define if the pivot location is a global location in the case of a user defined location |
Properties
| Name | Description |
|---|---|
| id | Unique id of this action, generated when the file is generated |
| menuPathRuleEngine | The path used for the contextual menu in the RuleEngine |
| menuPathToolbox | The path used for the contextual menu in the Toolbox |
| order | The order to use when placing this action in a list. If the value is -1, the display name will be used instead; |
| tooltip | Quick description to describe the behavior of this action |
Methods
| Name | Description |
|---|---|
| run(IList<GameObject>) | Execute the behavior of this action by moving the pivot of element of the input |