Angles GetAngles( Sandbox.StringToken& name, Angles& defaultValue )

book_4_sparkGenerated
code_blocksInput

Description

The GetAngles method retrieves an Angles value associated with a specified StringToken key from the RenderAttributes collection. If the key does not exist, it returns a default Angles value provided by the caller.

Usage

To use the GetAngles method, you need to provide a StringToken that identifies the attribute you want to retrieve and a default Angles value that will be returned if the attribute is not found.

Example usage:

RenderAttributes attributes = new RenderAttributes();
StringToken key = new StringToken("rotation");
Angles defaultAngles = new Angles(0, 0, 0);
Angles result = attributes.GetAngles(ref key, ref defaultAngles);

Example

RenderAttributes attributes = new RenderAttributes();
StringToken key = new StringToken("rotation");
Angles defaultAngles = new Angles(0, 0, 0);
Angles result = attributes.GetAngles(ref key, ref defaultAngles);