Class StretchToExtentsAction
An action that scales child content by the bounds of its matching AR Object
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MARS.Actions
Assembly: Unity.MARS.dll
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@1.6/manual/ReferenceGuideActions.html#stretch-to-extents-action-stretchtoextentsaction")]
[ComponentTooltip("Scales children to fit the bounds of their parent Real World Object.")]
[MonoBehaviourComponentMenu(typeof(StretchToExtentsAction), "Action/Stretch to Extents")]
[MovedFrom("Unity.MARS")]
public class StretchToExtentsAction : TransformAction, ISpawnable, IMatchAcquireHandler, IMatchUpdateHandler, IMatchLossHandler, IAction, ISimulatable, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber, IRequiresTraits
Methods
Awake()
Awake is called when the script instance is being loaded.
Declaration
protected override void Awake()
Overrides
GetRequiredTraits()
Get the TraitRequirements that are required by this object
Declaration
public TraitRequirement[] GetRequiredTraits()
Returns
Type | Description |
---|---|
TraitRequirement[] | The required traits |
OnMatchAcquire(QueryResult)
Called when a query match has been found
Declaration
public void OnMatchAcquire(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |
OnMatchUpdate(QueryResult)
Called when a query match's data has updated
Declaration
public void OnMatchUpdate(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |
Implements
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber<TProvider>
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber