Tanoda
LeapTextureData.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9using System;
10using UnityEngine;
11using UnityEngine.Serialization;
13
15
16 public static class LeapTextureFeatureExtension {
17 public static LeapTextureData Texture(this LeapGraphic graphic) {
18 return graphic.GetFeatureData<LeapTextureData>();
19 }
20 }
21
22 [LeapGraphicTag("Texture")]
23 [Serializable]
25
26 [FormerlySerializedAs("texture")]
27 [EditTimeOnly, SerializeField]
28 private Texture2D _texture;
29
30 public Texture2D texture {
31 get {
32 return _texture;
33 }
34 set {
35 _texture = value;
38 }
39 }
40 }
41}
bool isRepresentationDirty
An internal flag that returns true if the visual representation of this graphic needs to be updated....
Definition: LeapGraphic.cs:64