blob: b3b07d3e32c7e1390637148de9910fdb622f7196 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
C++RAW
#include "UnityPrefix.h"
#include "Configuration/UnityConfigure.h"
#include "Runtime/Mono/MonoManager.h"
#include "Runtime/Graphics/Transform.h"
#include "Runtime/Utilities/PathNameUtility.h"
#include "Runtime/Profiler/ProfilerHistory.h"
#include "Runtime/Misc/PlayerSettings.h"
#include "Runtime/Allocator/MemoryManager.h"
#include "Runtime/Audio/AudioClip.h"
#if ENABLE_AUDIO
#include "Runtime/Audio/AudioSource.h"
#include "Runtime/Audio/AudioListener.h"
#include "Runtime/Audio/AudioManager.h"
#include "Runtime/Audio/AudioReverbZone.h"
#include "Runtime/Audio/AudioReverbFilter.h"
#include "Runtime/Audio/AudioHighPassFilter.h"
#include "Runtime/Audio/AudioLowPassFilter.h"
#include "Runtime/Audio/AudioChorusFilter.h"
#include "Runtime/Audio/AudioDistortionFilter.h"
#include "Runtime/Audio/AudioEchoFilter.h"
#endif
#include "Runtime/Animation/Animation.h"
#include "Runtime/Video/MovieTexture.h"
using namespace Unity;
/*
Mono defines a bool as either 1 or 2 bytes.
On windows a bool on the C++ side needs to be 2 bytes.
We use the typemap to map bool's to short's.
When using the C++ keyword and you want to export a bool value
to mono you have to use a short on the C++ side.
*/
void PauseEditor ();
using namespace std;
CSRAW
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Collections;
using System.Collections.Generic;
using UnityEngineInternal;
namespace UnityEngine
{
// Movie Textures (Pro only) are textures onto which movies are played back.
CONDITIONAL ENABLE_MOVIES
CLASS MovieTexture : Texture
// Starts playing the movie.
AUTO void Play ();
// Stops playing the movie, and rewinds it to the beginning
AUTO void Stop ();
// Pauses playing the movie.
AUTO void Pause ();
// Returns the [[AudioClip]] belonging to the MovieTexture.
CONDITIONAL ENABLE_AUDIO
AUTO_PTR_PROP AudioClip audioClip GetMovieAudioClip
// Set this to true to make the movie loop.
AUTO_PROP bool loop GetLoop SetLoop
// Returns whether the movie is playing or not
AUTO_PROP bool isPlaying IsPlaying
// If the movie is downloading from a web site, this returns if enough data has been downloaded so playback should be able to start without interruptions.
AUTO_PROP bool isReadyToPlay ReadyToPlay
// The time, in seconds, that the movie takes to play back completely.
AUTO_PROP float duration GetMovieDuration
END
CSRAW }
|