Class BuildSurfaceAction
Creates a surface plane from the entity's plane data
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#match-action-matchaction")]
[MonoBehaviourComponentMenu(typeof(BuildSurfaceAction), "Action/Build Surface")]
[MovedFrom("Unity.MARS")]
public class BuildSurfaceAction : TransformAction, IMatchLossHandler, IMatchAcquireHandler, IMatchUpdateHandler, IAction, ISimulatable, IUsesMARSTrackableData<MRPlane>, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber, IRequiresTraits
Properties
LocalPlaneOffset
Offsets the created plane in local space. Offset in Y axis to clarify depth ordering.
Declaration
public Vector3 LocalPlaneOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
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