![]() This property drawer allows to modify behavior and visualization of scale handles of bounds control. Flatten axis display scale: a scale that is applied to the box display if one of the axes is flattened.Box grabbed material: material for the box when the user interacts with the control by grabbing via near or far interaction.A box will only be rendered if this material is set. Box material: defines the material applied to the rendered box when no interaction takes place.The box configuration is responsible for rendering a solid box with bounds defined via collider size and box padding. In addition shared instances won't be editable directly in the bounds control property window itself, but instead the asset it's linking to has to be directly modfied to avoid any accidental changes on shared configurations.Ĭurrently bounds control offers configuration objects options for the following features: The bounds control inspector will indicate whether a configuration is shared or inlined as part of the current instance by showing a message in the property inspector. Further configurations can also be defined directly on the instance without linking to an external or nested scriptable asset. Configurations can be shared and linked either as individual scriptable asset files or nested scriptable assets inside of prefabs. ![]() The control comes with a set of configuration objects that can be stored as scriptable objects and shared between different instances or prefabs. Visual configurations are either linked or inlined scriptable objects and are described in more detail in the configuration object section. The appearance of bounds control can be configured by modifying one of the corresponding visuals configurations. The smoothing section allows to configure smoothing behavior for scale and rotate of the control. If flatten axis is set to Flatten Auto the script will automatically pick the axis with the smallest extent as flatten axis. This feature can be used for thin objects like slates. Indicates whether the control is flattened in one of the axes, making it 2 dimensional and disallowing manipulation along that axis. This will influence not only interaction but also impact the visuals. ![]() Box paddingĪdds a padding to the collider bounds used to calculate the extents of the control. Sets a box collider from the object for bounds computation. You can manually activate it through a script by accessing the boundsControl.Active property.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |